I2C EEPROM library. Split from uRTCLib. This library controls any I2C EEPROM, independent ones or incorporated on DS1307 or DS3231 RTCs.
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
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.