🔌MicroPython
Also known as Micro Python, CircuitPython
A small Python that runs on tiny chips. You type it live on the board.
Think of it like
It is like a small Python. It can live in a tiny chip.
Example
Jack plugs in an ESP32 that runs MicroPython. He types two lines at the prompt, and the LED on pin 2 lights up.
Why it matters
Definition
Example code
python
from machine import Pin
led = Pin(2, Pin.OUT)
led.value(1)Common mistake
Key takeaways
- 1Python on a chip. The same language, made small.
- 2Live prompt. Type a line and see it run.
- 3Small and slower. Fewer libraries than full Python.