Page 1 of 1

Raspberry Pi Pico W, how to disable timers with Keyboard Interrupt triggered?

Posted: Wed Jul 27, 2022 12:10 am
by Jibun no kage
On a Raspberry Pi Pico W, how to disable timers with Keyboard Interrupt triggered? Apparently once a timer is setup and active, there is no way to actually stop it?

Re: Raspberry Pi Pico W, how to disable timers with Keyboard Interrupt triggered?

Posted: Wed Jul 27, 2022 1:02 am
by Lobo-T
https://docs.micropython.org/en/latest/ ... mer.deinit

Catch the keyboard interrupt, deinit the timer, the raise keyboard interrupt again?

Re: Raspberry Pi Pico W, how to disable timers with Keyboard Interrupt triggered?

Posted: Wed Jul 27, 2022 8:34 pm
by Jibun no kage
Yup, i figured it out later the same day I posted the question, once I got the deinit( ) right, that did the trick.