31 lines
652 B
Markdown
31 lines
652 B
Markdown
---
|
||
title: micropython + vscode配置ESP32开发环境
|
||
createTime: 2023/06/05 16:37:09
|
||
tags:
|
||
- esp32
|
||
categories:
|
||
- 随记
|
||
---
|
||
|
||
1. 准备工作
|
||
|
||
下载[micropython for esp32](https://micropython.org/download/esp32/)
|
||
|
||
vscode 安装插件“Pymakr”
|
||
|
||
2. 烧写 micropython
|
||
|
||
```bash
|
||
pip install esptool
|
||
|
||
esptool --chip esp32 --port your_serial_port clear_flash
|
||
|
||
esptool --chip esp32 --port your_serial_port write_flash -z 0x1000 your_micropython.bin
|
||
```
|
||
|
||
3. 在 Pymakr 中新建项目,选择同步目录,选择 create terminal,出现 micropython 命令行即为配置成功
|
||
|
||

|
||
|
||

|