adafruit / Adafruit_CircuitPython_24LC32

CircuitPython Driver for Adafruit 24LC32 I2C EEPROM Breakout 32Kbit / 4 KB
MIT License
6 stars 6 forks source link

Update adafruit_24lc32.py to add max_size parameter to EEPROM_I2C #23

Closed TonyLHansen closed 9 months ago

TonyLHansen commented 9 months ago

I would like to use this library with other EEPROMs in the 24C series or other EEPROMs that use the same I2C protocol. The only real difference is that they have different maximum sizes. The minimal change is to add a parameter to specify that maximum size.

This also resolves issue #3.

TonyLHansen commented 9 months ago

thank you