I've moved a subset of my large daylight alarm clock into a tin can for travel, it was all working just fine until I put it in a new housing. Specifically I'm working on a Feather RP2040 using neopixels, an oled, RTC, and stemma rotary encoder seesaw (and two buttons). I've unfortunately just soldered up my first perma-proto, so I'm really hoping to fix it in place if possible, not replace the board. Code and Error:
Code: Select all
import board
i2c = board.I2C()
i2c.try_lock()
print(i2c.scan())
Code: Select all
code.py output:
Traceback (most recent call last):
File "code.py", line 4, in <module>
TimeoutError: Clock stretch too long
Code done running.