0

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?

asked Jun 21, 2019 at 6:30
4
  • 1
    why not use the EEPROM of your MCU? Commented 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. Commented Jun 21, 2019 at 9:34
  • every EEPROM has 'limited' count of writes. you have an Arduino Uno with removable ATmega328? Commented Jun 21, 2019 at 10:48
  • @Juraj yes but 24C32 have write cycle of 1 million times instead of 100,000 times of ATmega328. Commented Jun 21, 2019 at 11:47

1 Answer 1

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.

answered Jun 21, 2019 at 7:39
3
  • is this a proper library to use? Commented Jun 21, 2019 at 10:14
  • 1
    It'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. Commented Jun 21, 2019 at 12:28
  • just in case anyone stumble upon this question; i tested this library and it's working. Commented Jun 21, 2019 at 20:25

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.