Now that we have connected all of our hardware, we should first check whether we can see all of our devices on the I2C bus. Switch on your Pi Zero, and connect to over SSH. Once you are logged in, run the following command to check the devices detected on the I2C bus – i2cdetect -y 1. You should see the same as this:
This is telling us that we can see five different devices on our I2C bus:
- 0x49: Enviro pHAT - ADS1015
- 0x29: Enviro pHAT - TCS3472
- 0x1d: Enviro pHAT - LSM303D
- 0x77: Enviro pHAT - BMP280
- 0x74: Scroll pHAT HD
If you cannot see these five devices on your I2C bus, then you need to go back and check whether ...