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
importdigitalioimportboardimportalarmimporttimeuart=board.UART()
uart.baudrate=115200led=digitalio.DigitalInOut(board.LED)
led.switch_to_output(True)
time.sleep(2)
led.value=Falsemsg="Alarm was "+str(alarm.wake_alarm) +"\r\n"print(msg, end="")
# uart.write(msg.encode("utf-8"))whileTrue:
time_alarm=alarm.time.TimeAlarm(monotonic_time=time.monotonic() +15)
msg="Entering Light sleep for 15 seconds at "+str(time.monotonic()) +"\r\n"print(msg, end="")
uart.write(msg.encode("utf-8"))
# local_pin_alarm_command = alarm.pin.PinAlarm(# pin=board.D6, value=False, edge=False, pull=False)# alarm.light_sleep_until_alarms(time_alarm, local_pin_alarm_command)alarm.light_sleep_until_alarms(time_alarm)
print("Awoke from light sleep, now deep sleep")
time_alarm=alarm.time.TimeAlarm(monotonic_time=time.monotonic() +36)
msg="Entering deep sleep for 36 seconds at "+str(time.monotonic()) +"\r\n"print(msg, end="")
uart.write(msg.encode("utf-8"))
alarm.exit_and_deep_sleep_until_alarms(time_alarm)
Behavior
When I run the code shown below with the ESP32-S3 Feather NO PSRAM, connected to the USB for Power using MU, all works fine. Light Sleep and Deep Sleep perform as expected. When I run off of Battery Alone, then the feather goes into Light Sleep, followed by Deep Sleep (Both work fine on First Pass). On second and following passes then Light Sleep awakens after about 0.005 seconds and Deep Sleep awakens after 36 Seconds as expected. Somehow Awakening from Deep Sleep seems to interfere with Light Sleep now.
Description
Adafruit CircuitPython 8.0.0-beta.6 on 2022-12-21; Adafruit Feather ESP32S3 No PSRAM with ESP32S3
When Working
Entering Light sleep for 15 seconds at 4.012
Entering Light sleep for 15 seconds at 21.819
Entering deep sleep for 36 seconds at 36.819
Entering Light sleep for 15 seconds at 4.012
Entering deep sleep for 36 seconds at 19.013
When Not Working
Entering Light sleep for 15 seconds at 2.514
Entering deep sleep for 36 seconds at 2.519
Entering Light sleep for 15 seconds at 2.514
Entering deep sleep for 36 seconds at 2.519
Entering Light sleep for 15 seconds at 2.514
Additional information
No response
The text was updated successfully, but these errors were encountered:
CircuitPython version
Code/REPL
Behavior
When I run the code shown below with the ESP32-S3 Feather NO PSRAM, connected to the USB for Power using MU, all works fine. Light Sleep and Deep Sleep perform as expected. When I run off of Battery Alone, then the feather goes into Light Sleep, followed by Deep Sleep (Both work fine on First Pass). On second and following passes then Light Sleep awakens after about 0.005 seconds and Deep Sleep awakens after 36 Seconds as expected. Somehow Awakening from Deep Sleep seems to interfere with Light Sleep now.
Description
Adafruit CircuitPython 8.0.0-beta.6 on 2022-12-21; Adafruit Feather ESP32S3 No PSRAM with ESP32S3
When Working
Entering Light sleep for 15 seconds at 4.012
Entering Light sleep for 15 seconds at 21.819
Entering deep sleep for 36 seconds at 36.819
Entering Light sleep for 15 seconds at 4.012
Entering deep sleep for 36 seconds at 19.013
When Not Working
Entering Light sleep for 15 seconds at 2.514
Entering deep sleep for 36 seconds at 2.519
Entering Light sleep for 15 seconds at 2.514
Entering deep sleep for 36 seconds at 2.519
Entering Light sleep for 15 seconds at 2.514
Additional information
No response
The text was updated successfully, but these errors were encountered: