Replies: 1 comment
-
Never mind it was a bad connection -- MY FAULT -- thanks for you code! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I uploaded sensor_pack ti pico, main.py and bmp390.py.
I set my pins up as follows:
i2c = I2C(id=1, scl=Pin(27), sda=Pin(26), freq=100_000) # on Raspberry Pi Pico
i2c1_devices = i2c.scan()
if i2c1_devices:
for d in i2c1_devices: print(f"i2c1 device{d} = {hex(d)}")
else:
print("ERROR: No i2c1 devices")
Any ideas?
I'm getting this error:
i2c1 device119 = 0x77
Traceback (most recent call last):
File "", line 27, in
File "bmp390.py", line 66, in init
File "bmp390.py", line 130, in _read_calibration_data
File "bmp390.py", line 112, in _read_register
File "sensor_pack/bus_service.py", line 94, in read_register
OSError: [Errno 5] EIO
Beta Was this translation helpful? Give feedback.
All reactions