Home

Awesome

mb_24x256_512

Very simple MicroPython module/driver for Microchip 24x256 and 24x512 I2C EEPROM devices. Works with RP2040 (tested with Raspberry Pi Pico) but should also work with other boards that have hardware or software I2C and are capable of running MicroPython v1.15.

This module is intended to make using the 24x256/512 as simple as possible. It has the following functions:

Author: mark@marksbench.com

Version: 0.1, 2021-06-04

**NOTE(1): There is no guarantee that this software will work in the way you expect (or at all). Use at your own risk.

**NOTE(2): This driver is intended to be as simple as possible to use. As a result it does byte writes instead of page writes. That means that each time you write a byte, the entire page is re-written in the EEPROM. This can/will wear the EEPROM significantly faster than doing a page write. Other options are sequential writes or page writes but they are not part of this driver.

**NOTE(3): Thanks to KJRC on the Adafruit forums for testing and providing feedback and ideas

Prerequisites:

Usage:

For more information, consult the Raspberry Pi Pico Micropython SDK documentation at: https://datasheets.raspberrypi.org/pico/raspberry-pi-pico-python-sdk.pdf

and the MicroPython documentation at: https://micropython.org

and the Microchip 24x256/512 datasheets at: https://www.microchip.com