← index #16462Issue #16181
Related · high · value 1.141
QUERY · ISSUE

lightsleep doesn't work with v1.24.1 on ESP32-S2 (S2FN4R2)

openby permaBoxopened 2024-12-20updated 2025-03-03
bugport-esp32needs-info

Port, board and/or hardware

ESP32-S2, with ESP32-S3 it works!

MicroPython version

MPY v1.24.1 and latest dirty version, ESP32-S2FN4R2,

Reproduction

tested with touch and timeout for wake-up source, e.g. lightsleep(3000)

Expected behaviour

No response

Observed behaviour

no wake-up

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

CANDIDATE · ISSUE

lightsleep on Pico W regression for 1.24.0

closedby bclermontopened 2024-11-08updated 2025-05-21
bugport-rp2

Port, board and/or hardware

PICO W

MicroPython version

Micropython 1.24.0

Reproduction

Micropython 1.23.0 can run that code:

import machine
import time

led = machine.Pin("LED", machine.Pin.OUT)
led.off()

while True:
    print("Loop instance")
    led.on()
    time.sleep(0.1)   
    led.off()
    machine.lightsleep(10000)

it will sleep for 10s.

if you try the same with 1.24.0 there is absolutely no sleep at all. the string Loop instance just appears every 0.1 seconds

Expected behaviour

machine.lightsleep to do something on 1.24.0

Observed behaviour

machine.lightsleep do something on 1.23.0 but not 1.24.0

Additional Information

No, I've provided everything above.

Code of Conduct

Yes, I agree

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied