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.2 on 2025-07-31; Adafruit Feather ESP32S3 4MB Flash 2MB PSRAM
Code/REPL
import digitalio
import board
try:
i2c_power = digitalio.DigitalInOut(board.I2C_POWER)
i2c_power.direction = digitalio.Direction.OUTPUT
i2c_power.value = False
time.sleep(0.1)
i2c_power.deinit()
except Exception as e:
log(f"Failure turning off I2C power: {e}", level="ERROR")
Behavior
I get the error message "I2C_POWER in use" when turning off power before going to deep sleep.
I got similar error messages for NEOPIXEL_POWER, but that seems to work now. I also get "PIN in use" error messages when setting a deep sleep pin alarm for a pin I have initialized and used in my code.
Description
No response
Additional information
This uses to work in the previous 9.x version,