開發環境搭建及軟體下載
一、下載軟體及韌體
- Thonny (thonny.org)
- python3
- esp32 micropython韌體(https://micropython.org/download/esp32/)
- 開發板對應的串口驅動(cp2101或CH340) 在電腦設備管理器查看埠號 (COM?)
(將1、2、4安裝在電腦上)
二、擦除原先韌體并更新micropython韌體
1 安裝esp32工具
工具》管理插件》收索“esptool” 并安裝
2韌體擦除并更新
- 工具》設定》解釋器》選擇“Micropython(ESP32)”,
- 在Port or WebREPL 中選擇對應的埠號,
- 點擊 install or update firmare
Port選擇埠號
Firemare 選擇 步驟一中3 所下載的micropython韌體包
選中 Erase flash before installing 然后點擊安裝即可
三、在shell內查看資訊并且測驗

上圖即表示 安裝成功
在shell里面依次輸入以下代碼(點亮/關閉 led) 并且觀看開發板上對應led變化
>>> import machine
>>> led = machine.Pin(2,machine.Pin.OUT)
>>> led.on()
>>> led.off()
>>> led.value(1)
>>> led.value(0)
>>> led.value(True)
>>> led.value(False)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/401461.html
標籤:其他
下一篇:關于MIPI的D-PHY硬體總結
