Search found 3 matches
- Thu May 02, 2019 6:50 am
- Forum: MicroPython pyboard
- Topic: Import error - using Micropython onilne
- Replies: 4
- Views: 7479
Re: Import error - using Micropython onilne
Oh! I was hoping there would be a different way to implement the functionality. Thank you for the clarification!
- Thu May 02, 2019 5:29 am
- Forum: MicroPython pyboard
- Topic: Import error - using Micropython onilne
- Replies: 4
- Views: 7479
Re: Import error - using Micropython onilne
The libraries are pretty confusing - I'm not able to use the Timers as well in the unicorn. import pyb tim=pyb.Timer(3) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: 'module' object has no attribute 'Timer' Timer class doesn't exist in machine, pyb nor time m...
- Wed May 01, 2019 9:44 am
- Forum: MicroPython pyboard
- Topic: Import error - using Micropython onilne
- Replies: 4
- Views: 7479
Import error - using Micropython onilne
Hi, I'm trying out a simple code to turn ON an external LED on https://micropython.org/unicorn/. But I get an import error while importing 'Pin' attribute. Can someone guide me here? Please look at the code below: >>> from pyb import Pin Traceback (most recent call last): File "<stdin>", line 1, in ...