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

STM32 Wire buffer can be up to 255 #6

Closed r-pv closed 3 years ago

r-pv commented 3 years ago

Hi, first thanks for your library, I've used on a few projects and it works perfectly.

So, as in the title, I use your library on the STM32 platform (using the STCore) and this core has the possibility of send up to 255 bytes on a I2C buffer. On smaller eeproms it won't matter much but on the bigger (>AT24C64) will be noticeable. You can detect the ST core with something like:

#ifdef STM32_CORE_VERSION
     #define UEEPROMLIB_WIRE_MAX_RBUFFER 250
#else
...

I tested this on a BL24C256 (64bytes page size) and it was able to send >60bytes on 1 page write.

Thanks again.

Naguissa commented 3 years ago

Hello,

Thanks for the info. I'll add that as option in near future, as it also comes with its memory cost.

Cheers!