You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importboardimportalarmimportmicrocontrollerimportdigitalio# LED pin for observing if deep sleep was reached (LED will go out)LED_PIN=microcontroller.pin.GPIO15led=digitalio.DigitalInOut(LED_PIN)
led.direction=digitalio.Direction.OUTPUTled.value=False# turn on LEDpin_alarm=alarm.pin.PinAlarm(pin=board.D9, value=True, pull=False)
alarm.exit_and_deep_sleep_until_alarms(pin_alarm)
# board does not deep sleep here (above)# this code (below) will correctly sleep, forever:# alarm.exit_and_deep_sleep_until_alarms()
CircuitPython version and board name
Code/REPL
Behavior
With the pin_alarm, the board will not sleep:
The device will not deep sleep.
With no alarms, the board will sleep forever:
This code will correctly deep sleep.
Deep sleeping correctly works with a time alarm:
This code will correctly deep sleep, and wake up 10s later.
Description
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: