Naguissa / uEEPROMLib

I2C EEPROM library. Split from uRTCLib. This library controls any I2C EEPROM, independent ones or incorporated on DS1307 or DS3231 RTCs.
https://www.foroelectro.net/librerias-arduino-ide-f29/ueepromlib-arduino-libreria-simple-y-eficaz-para-e-t225.html
GNU Lesser General Public License v3.0
17 stars 4 forks source link

[Solved] How to use it #2

Closed DynamicLoader closed 4 years ago

DynamicLoader commented 4 years ago
I have installed the library correctly and burned the sample program to Arduino uno. Everything is OK.

But,when I use it like these,it doesn't work:

`

include

include

uEEPROMLib EEPROMI2C(0x50);

bool SaveInt(int intNum,int id){ return EEPROMI2C.eeprom_write(id*4,intNum); }

void setup(){ Serial.begin(9600); Serial.println(SaveInt(25564,0)); }`

I don't know Why. Could you please tell me?Thanks.

DynamicLoader commented 4 years ago

Solved. I forgot to add 'Wire.begin();' !