Skip to content

lightsleep on Pico W regression for 1.24.0 #16181

@jeanlucmongrain

Description

@jeanlucmongrain

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

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy