Currently to get time/date i'm using DS3231 module with the RTClib library, i want to use the Atmel 24C32 chip on the module to store some small values (temperature etc).
Can i use the current library AND an external EEPROM library (which one?) OR i need to change my RTC library in order to use EEPROM feature?
-
1why not use the EEPROM of your MCU?Juraj– Juraj ♦2019年06月21日 08:35:49 +00:00Commented Jun 21, 2019 at 8:35
-
@Juraj because built in EEPROM have a limited number that can be write, i think it's 100,000 times.ElectronSurf– ElectronSurf2019年06月21日 09:34:50 +00:00Commented Jun 21, 2019 at 9:34
-
every EEPROM has 'limited' count of writes. you have an Arduino Uno with removable ATmega328?Juraj– Juraj ♦2019年06月21日 10:48:36 +00:00Commented Jun 21, 2019 at 10:48
-
@Juraj yes but 24C32 have write cycle of 1 million times instead of 100,000 times of ATmega328.ElectronSurf– ElectronSurf2019年06月21日 11:47:49 +00:00Commented Jun 21, 2019 at 11:47
1 Answer 1
Can i use the current library AND an external EEPROM library (which one?)
Yes. Devices on an I2C bus are separate devices and use their own separate libraries.
-
is this a proper library to use?ElectronSurf– ElectronSurf2019年06月21日 10:14:55 +00:00Commented Jun 21, 2019 at 10:14
-
1It's the first hit on Google so I guess so. I don't use Arduino and have my own chipKIT DTWI based library so I don't know.Majenko– Majenko2019年06月21日 12:28:53 +00:00Commented Jun 21, 2019 at 12:28
-
just in case anyone stumble upon this question; i tested this library and it's working.ElectronSurf– ElectronSurf2019年06月21日 20:25:18 +00:00Commented Jun 21, 2019 at 20:25