* Add i2c slave example from https://github.com/vmilea/pico_i2c_slave To test you need to wire pin GP4 to GP6 (SDA), and pin GP5 to GP7 (SCL)
11 lines
223 B
CMake
11 lines
223 B
CMake
add_executable(slave_mem_i2c
|
|
slave_mem_i2c.c
|
|
)
|
|
target_link_libraries(slave_mem_i2c
|
|
pico_i2c_slave
|
|
hardware_i2c
|
|
pico_stdlib
|
|
)
|
|
pico_add_extra_outputs(slave_mem_i2c)
|
|
example_auto_set_url(slave_mem_i2c)
|