Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Pico W: sleep_us causes execution to hang #12873

Closed
@danielteel

Description

@danielteel

Firmware version: MicroPython v1.21.0 on 2023-10-06; Raspberry Pi Pico W with RP2040

On both of my Pico W devices, if I execute the below code on a freshly booted device, it causes execution to hang.

importtimetime.sleep_us(5)time.sleep_us(10)time.sleep_us(5)time.sleep_us(10)time.sleep_ms(1000)print('its been a second')#doesnt print

The expected output is

its been a second

But the output is

To reproduce this:

  1. create a file called bug.py, insert the above code into it
  2. upload the file to the pico w
  3. do a hard reset
  4. in the REPL terminal executeimport bug
  5. execution will hang and will not print the text

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp