Tomas HübnerandGitHub 5bfc57b1d2 Bug fixes and unit tests (#14)
Added unit tests for I2C_eeprom_cyclic_store and fixed a bug in the format() method and a possible bug with the "empty" marker literal being expressed as ~0UL (which isn't necessarily the same size as a uint32_t).
2021-01-07 18:05:51 +01:00
2020-12-22 12:14:44 +01:00
2021-01-07 18:05:51 +01:00
2020-12-22 12:14:44 +01:00
2020-12-22 13:22:44 +01:00
2020-12-22 13:22:44 +01:00
2020-12-22 13:22:44 +01:00
2020-06-18 17:21:00 +02:00

Arduino CI License: MIT GitHub release

I2C_EEPROM

Arduino Library for external I2C EEPROM - 24LC256, 24LC64

Description

Library to access external I2C EEPROM.

The interface is pretty straightforward

  • begin() constructor
  • begin(sda, scl) constructor for ESP32
  • writeByte(address, value) write a single byte
  • writeBlock(address, buffer, length)
  • setBlock(address, value, length) e.g. use to clear I2C EEPROM
  • readByte(address) - read a single byte from a given address
  • readBlock(address, buffer, length)
  • updateByte(address, value) write a single byte, but only if changed.
  • determineSize()

The I2C_eeprom_cyclic_store interface is documented here

Limitation

The library does not offer multiple EEPROMS as one continuous storage device.

Operational

See examples

S
Description
Library for I2C EEPROM - 24LC256
Readme MIT
397 KiB
Languages
C++ 100%