Introduction to MicroPython
As its name indicates, MicroPython (https://micropython.org/) is an implementation of Python meant for microcontrollers. It is written in C and is largely compatible with Python 3. MicroPython is made up of a Python compiler that converts a program into bytecode and a runtime interpreter that runs the bytecode on the targeted microcontroller board. It also comes with a Read-Eval-Print-Loop (REPL) prompt for the immediate execution of Python statements. MicroPython comes with a large implementation of the core libraries included in CPython. Figure 2.3 is MicroPython’s latest logo:
Figure 2.3 – MicroPython’s logo
MicroPython was created by the Australian programmer and theoretical physicist Damien George. It was financially supported by a Kickstarter crowdfunding campaign. It was originally meant for a specialized microcontroller board, Pyboard. Its scope has now expanded, and it supports tons of microcontroller...