Setup
Setup the development environment and the MicroPython board
Development environment
This section describes the necessary steps on the computer to get ready to test and run the examples.
Install required tools
Python3 must be installed on your system. Check the current Python version with the following command
python --version
python3 --version
Depending on which command Python 3.x.y
(with x.y as some numbers) is
returned, use that command to proceed.
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
MicroPython
This section describes the necessary steps on the MicroPython device to get ready to test and run the examples.
Flash firmware
Flash the MicroPython firmware to the MicroPython board. The following example call is valid for ESP32 boards.
esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART erase_flash
esptool.py --chip esp32 --port /dev/tty.SLAB_USBtoUART --baud 921600 write_flash -z 0x1000 esp32spiram-20220117-v1.18.bin