Yes, the Micropython docs example was the first thing I tried.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.
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