This is the home page for a MicroPython Tutorial.
Here's the URL of the server:
http://service.robots.org.nz/wiki/
Exercises#
- MicroPython Tutorial Exercise 1: main.py
- MicroPython Tutorial Exercise 2: blocks
- MicroPython Tutorial Exercise 3: functions
- MicroPython Tutorial Exercise 4: classes
- MicroPython Tutorial Exercise 5: using classes
Starting Point#
We begin with a main.py file (defining a module called "main") containing just a single comment line: main.py # 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: blocks