forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Milestone
Description
CircuitPython version and board name
Adafruit CircuitPython 10.0.0-beta.3 on 2025-08-29; Raspberry Pi Pico W with rp2040
Board ID:raspberry_pi_pico_w
UID:E6632C85930F4136
MAC:2C:CF:67:08:08:49Code/REPL
import board
import busio
i2c1 = busio.I2C(board.GP15, board.GP14)Behavior
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: GP15 in use
Description
If the code interrupted for any reason, be it a coding error, pressing ctrl-c, saving code.py, copying a new library, the code quits and the i2c pins remain locked.
This is happening on the second i2c bus of the pico pi w. On this bus there is an adafruit oled display, driven by the library adafruit_displayio_ssd1306. On the other i2c bus there are two sensors and running happily whatever I do.
Somehow the display does not cleans up after itself or unable to clean up at start.
Additional information
No response