I’m trying to interface with an I2C board using MicroPython on a Pimoroni Tiny2040.
The issue I’m having is that I consistently get a “ValueError: bad SCL pin”. I’ve looked through the examples on GitHub, but there don’t seem to be any which are specifically for the Tiny2040 and use I2C.
I’ve installed Micropython - the RP2 family, Tiny 2040 (with Pimoroni libraries) variant, version 1.21.
Here’s a MWE of my code.
from pimoroni_i2c import PimoroniI2C
pins = {"sda": 16, "scl": 15}
i2c = PimoroniI2C(**pins)
Any insight will be gratefully received.