esp32c3刷入Micropython教程

1
2
3
4
reg query "HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\SERIALCOMM"  # 查看当前串口

esptool.py --chip esp32-c3 --port COM10 erase_flash
esptool.py --chip ESP32-C3 --port COM10 --baud 460800 write_flash -z 0x0 f:\esp32\esp32c3-20220117-v1.18.bin
1
2
3
4
5
6
7
8
9
10
11
from machine import Pin, I2C
import time
led1=Pin(12,Pin.OUT)
led2=Pin(13,Pin.OUT)
while True:
led1.on()
time.sleep(0.1)
led1.off()
led2.on()
time.sleep(0.1)
led2.off()

作者:天与地-谦信 https://www.bilibili.com/read/cv15460009 出处:bilibili