grapple-m24c64
A Rust embedded-hal driver for the M24C64 I2C EEPROM, featuring arbitrary-length read/writes and timeout behaviour.
Add to your project
cargo add grapple-m24c64
Examples
use M24C64;
let eeprom = M24C64 new;
eeprom.write;
let mut my_buf = ;
eeprom.read;
// my_buf = [0x00, 0x01, 0x02, 0x03]
Note the use of [embedded_hal::blocking::delay::DelayMs
], which is used to retry the write every 1ms until it either succeeds, or 10ms has passed (2*t_w in the M24C64 datasheet).