Add i2c slave example (#320)

* 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)
This commit is contained in:
Peter Harper
2023-02-07 14:03:00 +00:00
committed by GitHub
parent f3f5d9fe61
commit 5e1c1ca7b6
4 changed files with 146 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
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)