You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide a clear and concise description of the bug along with logs
When trying to setup a timer to run on a Pi Pico W, the Machine.Timer module appears to be broken, and the callback function is never called whilst using this extension.
The code functions perfectly using a different software to program the device (I.e. Thonny).
What are the steps to reproduce this issue?
Using latest Micropython Firmware on a Raspberry Pi Pico W, alongside latest version of MicroPico extension.
Try to run the following code on the pico.
from machine import Timer
tim = Timer()
def interrupt_func(t):
print('got here')
tim.init(freq=1, mode=Timer.PERIODIC, callback=interrupt_func)
What happens?
Nothing happens
What were you expecting to happen?
The timer should call the function interrupt_func once a second, printing "got here" to the vREPL.
When trying to setup a timer to run on a Pi Pico W, the Machine.Timer module appears to be broken, and the callback function is never called whilst using this extension.
The code functions perfectly using a different software to program the device (I.e. Thonny).
What are the steps to reproduce this issue?
What happens?
Nothing happens
What were you expecting to happen?
The timer should call the function
interrupt_func
once a second, printing "got here" to the vREPL.Any other comments?
Which version of MicroPico are you using?
Latest (4.2.1)
Support info
The text was updated successfully, but these errors were encountered: