This page (revision-43) was last changed on 2025-08-05 16:02 by Murray Altheim

This page was created on 2025-07-23 02:43 by Murray Altheim

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
43 2025-08-05 16:02 3 KB Murray Altheim to previous
42 2025-08-05 16:02 3 KB Murray Altheim to previous | to last
41 2025-08-05 16:01 3 KB Murray Altheim to previous | to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 38 changed 10 lines
We begin with a {{main.py}} file (sometimes called a "script") defining a __module__ called "main" and containing just a single comment line:
%%filename main.py %%
%%python {{{
# do something intelligent here
}}}
%%
The file {{main.py}} is special in MicroPython, in the sense that when you power-on the device and/or press the reset button, the {{main.py}} file is executed. It's the ''entry point'' for executing any application in Python.
__Next:__ [MicroPython Tutorial Exercise 2|MicroPythonTutorialExercise02]: blocks
__Next:__ [MicroPython Tutorial Exercise 1|MicroPythonTutorialExercise01]: main.py