Skip to content

A C library for using a 24XX01 EEPROM with the Raspberry Pi Pico

License

Notifications You must be signed in to change notification settings

antgon/pico-eeprom24xx01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

pico-eeprom24xx01

A C library for using a 24XX01 EEPROM with the Raspberry Pi Pico

The 24XX01 is a 1 Kbit Electrically Erasable PROM from Microchip. It is organised as one block of 128 x 8-bit memory and a I2C serial interface.

Wiring

EEPROM Pin Connect to
1, 2, 3 NC
4 (Vss) GND
5 (SDA) Pico SDA (e.g. pin 8)
6 (SCL) Pico SCL (e.g. pin 9)
7 (WP) GND for r/w, or 3V3 for read-only
8 (Vcc) 3V3

In addition, add one pull-up 10k resistor each to SDA and SCL.

Software

  1. Configure CMakeLists.txt in your base project to include the path to the pico-eeprom24xx01 library. Add pico-eeprom24xx01 to the list of target libraries. E.g. if the pico-eeprom24xx01 library is located one directory above (../) the current one your CMakeLists.txt file should include
.
.
.
include(pico_sdk_import.cmake)
add_subdirectory(../pico-eeprom24xx01/lib eeprom24xx01)

target_link_libraries(touch
        pico_stdlib
        hardware_i2c
        pico-eeprom24xx01
)
.
.
.
  1. Use the library; see the examples directory.

About

A C library for using a 24XX01 EEPROM with the Raspberry Pi Pico

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published