XC8 e bus I2C
Ciao, mi suggerite il codice per scrivere una stringa ( array ) :
int dati[] = {78, 400, 255, 0, 3, 150, 10, 300}; //Stringa da scrivere in memoria
nella memoria esterna (24LC256) che utilizza il bus i2c, per poi leggere i dati messi ( la stringa).
Come compilatore uso XC8 e un pic18f4550.
Questo mi serve per imparare a scrivere e leggere un array da una memoria esterna.
Grazie
int dati[] = {78, 400, 255, 0, 3, 150, 10, 300}; //Stringa da scrivere in memoria
nella memoria esterna (24LC256) che utilizza il bus i2c, per poi leggere i dati messi ( la stringa).
Come compilatore uso XC8 e un pic18f4550.
Questo mi serve per imparare a scrivere e leggere un array da una memoria esterna.
Grazie