Ah I see it’s a python library not a Linux package.
Thanks for the link
Based on the pinout of the qt py I have two i2c outs so I modified the code you linked to search both of them.
from machine import Pin, SoftI2C
def scani2c(i2c):
devices = i2c.scan()
if len(devices) == 0:
print("No i2c device !")
else:
print('i2c devices found:', len(devices))
for device in devices:
print("I2C hexadecimal address: ", hex(device))
i2c_0 = SoftI2C(scl=Pin(25), sda=Pin(24))
i2c_1 = SoftI2C(scl=Pin(23), sda=Pin(22))
print('I2C_0 SCANNER')
scani2c(i2c_0)
print('i2c_1 SCANNER')
scani2c(i2c_1)
I2C_0 SCANNER
No i2c device !
i2c_1 SCANNER
i2c devices found: 1
I2C hexadecimal address: 0x3c
I was expecting the i2c_0 scanner to detect the qt py Audio BFF but I guess that’s a future problem.
i2c_1 did detect the OLED display which is good news.
The piicodev example code I found didn’t seem to require me to specify the address. I wonder if I’m supposed to modify the PiicoDev_SSD1306.py device module file. It’s from CE’s Raspberry Pi Pico Guide, which also uses an RP2040, but may not have the same SCL and SDA GPIO pinouts.
Happy to have a dig through that.
Any other thoughts to try while I’m at it?