Quantcast
Viewing all articles
Browse latest Browse all 4928

MicroPython • Re: MicroPython: How to wake Pi Pico / Pico W / Pico 2 from sleep using GPIO button?

Did you try mine? The docs indicate that irq will wake a sleeping device.
It has only sleep and deepsleep. The new function is lightsleep. sleep is deprecated or will be soon.
Yes, the Micropython docs example was the first thing I tried.

The wake argument doesn't work because machine.SLEEP, machine.IDLE, and machine.DEEPSLEEP are not defined/available in the Pico's port of Micropython. The 'priority' argument doesn't work either, as I get an error saying extra keyword arguments given.

This still does not address the issue of why the Pico W does not even sleep when I try to use a fixed number of milliseconds.

Statistics: Posted by RYoder97 — Thu Nov 07, 2024 5:30 pm



Viewing all articles
Browse latest Browse all 4928

Trending Articles