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

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
Jibun no kage
Posts: 144
Joined: Mon Jul 25, 2022 9:45 pm

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

Post by Jibun no kage » Wed Jul 27, 2022 12:10 am

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?

Lobo-T
Posts: 36
Joined: Tue Nov 16, 2021 2:36 pm

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

Post by Lobo-T » Wed Jul 27, 2022 1:02 am

https://docs.micropython.org/en/latest/ ... mer.deinit

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

Jibun no kage
Posts: 144
Joined: Mon Jul 25, 2022 9:45 pm

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

Post by Jibun no kage » Wed Jul 27, 2022 8:34 pm

Yup, i figured it out later the same day I posted the question, once I got the deinit( ) right, that did the trick.

Post Reply