Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4853

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

$
0
0
I would have tried this:

Code:

button.irq(trigger=Pin.IRQ_FALLING, wake=machine.SLEEP)# orbutton.irq(trigger=Pin.IRQ_FALLING, wake=machine.DEEPSLEEP)

Statistics: Posted by SurferTim — Thu Nov 07, 2024 9:46 am



Viewing all articles
Browse latest Browse all 4853

Trending Articles