Hi,
Just got a couple of Pico W's from the PiHut and started to play.
Do I have to enable I2C?
The reason I ask is that I can not see ANY of my I2C devices when plugged onto the Pico.
I have tried 2 BME280 and 2 16x2 LCD displays (Individually and then run the code below) and all I get after each run is...
I have power on the 3.3(OUT) pin powering each I"C device.
I used the RPI_PICO_W-20231005-v1.21.0.uf2 file for the Pico W
Just got a couple of Pico W's from the PiHut and started to play.
Do I have to enable I2C?
The reason I ask is that I can not see ANY of my I2C devices when plugged onto the Pico.
I have tried 2 BME280 and 2 16x2 LCD displays (Individually and then run the code below) and all I get after each run is...
I have tried 2 Pico's and the same result. I have checked and I have continuity from the device pins back to the Pico pins so it's not bad jumper wires. I have tried all the I2C pin pairs on the picoMPY: soft reboot
Scan i2c bus...
No i2c device !
I have power on the 3.3(OUT) pin powering each I"C device.
I used the RPI_PICO_W-20231005-v1.21.0.uf2 file for the Pico W
Code:
import machinesda=machine.Pin(8)scl=machine.Pin(9)i2c=machine.I2C(0,sda=sda, scl=scl, freq=400000)print('Scan i2c bus...')devices = i2c.scan()if len(devices) == 0: print("No i2c device !")else: print('i2c devices found:',len(devices))for device in devices: print("Decimal address: ",device," | Hexa address: ",hex(device))
Statistics: Posted by SniffTheGLove — Sun Dec 24, 2023 10:30 pm