adafruit / RTClib

A fork of Jeelab's fantastic RTC Arduino library
MIT License
795 stars 705 forks source link

documentation for readnvram/writenvram read/write to buffer missing the max. buffer size #272

Open MaDill opened 1 year ago

MaDill commented 1 year ago

I use the example from the Arduino IDE and modified it. In the beginning I tried to read/write the whole nvram into/from a buffer. It does not fit by read byte by byte. It fit roughly be some bytes was inserted or missing. I did not receive an error or some other hint.

After some searching I found a comment in the Adafruit BusIO > Adafruit_I2CDevice.cpp: // currently not guaranteed to work if more than 32 bytes! // we will need to find out if some platforms have larger // I2C buffer sizes :/

Maybe this can be added to the documentation.

Here is my scetch.

ds1307nvram.ino.txt