date_updated | layout | title | dependancies | dev_board | components | chips | firmware | feature | images | prerequisites | references | code | source_code_path | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2022-11-02 |
tutorials |
I2C Bus Scan with RPi pico |
|
RaspberryPI Pico |
|
|
|
|
|
|
|
c |
pico-i2c.c |
This example code does an I2C Bus Scan for the sensors Si7021
and VCNL4000
.
The datasheets of the 2 sensors below show that the serial monitor prints are in line with the information in the datasheet.
The I2C address for Si7021
is 0x40
.
![]({{ site.url }}/assets/images/tutorials/pico-i2c-datasheet-si7021.png)
The I2C address for VCNL4000
is 0x13
.
![]({{ site.url }}/assets/images/tutorials/pico-i2c-datasheet-VCNL4000.png)