Hi all.
I know I should be able to find the answer to this myself but I’ve tried and suspect this is one of those issues that is well known to all but us newbie numpties and so not documented in a way easily found.
I’m trying to debug some simple code in Thonny. The code uses the machine library and the pin attribute within. I’ve copied the machine.py file to the same folder as my code.py (which fixed the module error I was seeing).
When I debug I get the error:
AttributeError: module ‘machine’ has no attribute ‘Pin’
Sure enough, machine.py does not contain a pin function.
The code runs fine on the Pico.
Have I got the wrong machine.py on the computer?
Maybe my bigger more basic question is…where can I find a guide on how to set up Thonny to debug?
Help appreciated.