跳转至

ESP32

ESP-IDF 开发环境

环境变量设置

ESP32_PORT=/dev/ttyUSB0

使用开发环境shell

sudo docker run --rm \
    -v ${PWD}:/project -w /project \
    --device ${ESP32_PORT}:${ESP32_PORT} \
    -it espressif/idf

API docs

Micropython

烧录micropython固件

清除flash

esptool.py --chip esp32 --port /dev/ttyUSB0 erase_flash

向flash刷入micropython (esp32-20210902-v1.17.bin)

esptool.py --chip esp32 --port /dev/ttyUSB0 \
    --baud 460800 write_flash -z 0x1000 \
    esp32-20210902-v1.17.bin  

rshell

安装

pip3 install rshell

连接esp32

rshell -p /dev/ttyUSB0

复制脚本文件(如main.py)到esp32

cp main.py /pyboard

获取MicroPython REPL终端

repl

Micropython API docs


最后更新: May 21, 2022
回到页面顶部