ESP32使用micropython心得

可以先看一下eps8266和esp 32的对比介绍,了解一下eps32特点

https://www.cirmall.com/articles/398156

配置对应环境

本次环境使用工具pycharm,需依次安装 esptool,adafruit-ampy。在pycharm上安装“intellij-MicroPython 插件”。
esptool安装

pip install esptool

adafruit-ampy 安装

pip install adafruit-ampy

intellij-MicroPython 插件 配置
ESP32使用micropython心得

擦除原ESP32命令:

esptool --chip esp32 --port COM3 erase_flash

ESP32使用micropython心得

烧录micropython

下载地址:https://micropython.org/download#esp32 目前最新版本esp32-20190825-v1.11-240-g519746cae.bin
切换文件目录到下载目录,执行命令:

esptool --chip esp32 --port COM3 --baud 115200 write_flash -z 0x1000 esp32-20190825-v1.11-240-g519746cae.bin

ESP32使用micropython心得

使用连接工具测试是否刷固件成功

使用工具 xshell 和 putty均可
连接成功后,输入测试语句:

print('hello world!')

ESP32使用micropython心得
ESP32使用micropython心得

上一篇:.NET Core dotnet 命令大全


下一篇:ubuntu使用ssh远程登录服务器及上传本地文件到服务器