2026-04-02 23:12:36 +08:00

31 lines
652 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
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 命令行即为配置成功
![pymakr](./img/pymakr.png)
![pymakr](./img/pymakr_terminal.png)