using Timer on the wipy 3.0
I'am having difficulties with the Timer on the wipy 3.0, I'm trying to follow the tutorial on https://docs.micropython.org/en/latest/wipy/tutorial/timer.html, I can import the module but when I try to initilize the Timer as shown in the tutorial I get this message:
>>> tim = Timer(1, mode=Timer.PERIODIC, width=32) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: type object 'Timer' has no attribute 'PERIODIC'
has anyone know what am I doing wrong?.
Thanks for your help
robert-hh last edited by
This post is deleted!
@jubenjum The tutorial you are using is for the "main" line of MicroPython. Pycom has a separate branch which differs in quite a few places.
See the docs here for the Pycom version. The mode is passed as a
periodicargument in that one.