- handle esp32 with micropython
- with arduino ide
$ ./allow_dev.sh-
ESP32 MicroPython documentation
-
The reference of Arduino ESP32
- write/read file
$ pip install adafruit-ampy
$ export AMPY_PORT=/dev/ttyUSB0
$ ampy ls- GUI code editor for micropython
$ pip install pipenv
$ pipenv --python 3.7
$ pipenv install mu-editor
# not japanese but english
$ LANG=C pipenv run mu-editor
# use latest version
$ git clone https://github.com/mu-editor/mu
$ pyenv global 3.7.9
$ cd mu && python -m pip install -e .
$ mu-editor- Connect to REPL through serial communication
$ sudo apt install picocom
$ picocom /dev/ttyUSB0 -b 115200- Designing Circuits IDE
$ sudo apt install fritzing
$ fritzing$ pip install esptool
$ esptool.py --port /dev/ttyUSB0 erase_flash
# Micropython
$ wget \
"http://micropython.org/resources/firmware/esp32-idf3-20200902-v1.13.bin"
# Original firmware
# Goto: https://github.com/espressif/esp-at/releases/tag/v2.1.0.0_esp32s2
# Download: ESP32-S2-WROOM_AT_Bin_V2.1.0.0.zip
# Copy: factory/factory_WROOM.bin
$ esptool.py --chip esp32 --port /dev/ttyUSB0 write_flash \
-z 0x1000 esp32-*.bin