AttributeError: 'module' object has no attribute 'Pin'

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
walli_90
Posts: 6
Joined: Mon Feb 11, 2019 12:10 pm

Re: AttributeError: 'module' object has no attribute 'Pin'

Post by walli_90 » Tue Feb 19, 2019 7:57 am

Hanilein wrote:
Fri Feb 15, 2019 9:50 pm
I'd like to know, how much RAM I have left, so what I do is:
(...)
Thanks. That is really helpful.



So it is likely that the error came from the module imports in main.py? But why does it work now? Since I rewrote the functions everything behaves like expected and I have not touched the imports in main.py.

Post Reply