Beginner cant find main.py

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.
Post Reply
DavidMarks
Posts: 2
Joined: Fri Aug 13, 2021 5:29 pm

Beginner cant find main.py

Post by DavidMarks » Sun Aug 22, 2021 9:13 pm

Just tried to start up new pyboard wthout success. Green LED flashes and flash drive appears OK. All documentation I can find says there should be a boot.py file and a main.py file. there is no sign of a main.py file and I can find no documentation that explains why so cant proceed any further. At least I have managed to get a nodemcu board to run Micropython so perhaps should stick to that. A frustrating and disappointing start with the pyboard which I exected to be easier.

User avatar
Roberthh
Posts: 3667
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Beginner cant find main.py

Post by Roberthh » Mon Aug 23, 2021 5:49 am

main.py is not mandatory. If it exists, it will be executed at boot time. By default it will not be created, but you can create one to put your code into it.

Post Reply