CAT24C512

Adding the necessary code for CAT24C512 EEPROM IC requires a single step:

  • Setup

Setup

The setup is done in 2_Board.ino. Set up your I2C channels, then scroll down to this section:

//EEPROM CAT24C512
#define USING_CAT24C512 0
#define CAT24C512_I2C_NUMBER 0
#define CAT24C512_ADDRESS 0x50

USING_CAT24C512 is to disable/enable support for this IC. Set it to 1 to enable.

CAT24C512_I2C_NUMBER lets to chose between I2C channel 0 or 1 on a RP2040 board. If you're not using a RP2040 board, just leave this at 0.

CAT24C512_ADDRESS is the I2C address you CAT24C512 is set up with. 0x50 is default, where address pins are all connected to ground.

For most cases, the only thing you'll need to activate EEPROM and all its features is to flip USING_CAT24C512 to 1.

Last updated