安裝nodemcu開發環境
燒錄環境【esptool.py】
安裝python2.7
Python https://www.python.org/downloads/ Python版本是2.7.12,因為esptool只可以在這個版本下用
安裝pip
在目錄C:\Python27\Scripts 下面執行 easy_install.exe pip
安裝esptool.py
命令行下執行 pip install esptool 安裝 esptool
【截止2017.03.11最新版本1.3】
使用基于esptool.py的GUI環境
https://github.com/marcelstoer/nodemcu-pyflasher
安裝包下載鏈接 https://github.com/marcelstoer/nodemcu-pyflasher/releases
【2017.3.11最新版本 NodeMCU-PyFlasher-0.2.0.exe】
刷最新lua固件
編譯自己的固件
https://nodemcu-build.com/index.php
在線選擇需要集成的庫,在線編譯后幾分鐘即可發送到指定郵箱
命令行方式
擦除Flash:
esptool.py --port COM3 erase_flash 擦除Flash
同樣燒錄lua固件:
esptool.py --port COM3 --baud 460800 write_flash --flash_size=detect -fm dio 0 esp_init_data_default.bin
GUI燒寫工具 ESP8266Flasher
下載地址 https://github.com/nodemcu/nodemcu-flasher
上傳應用代碼 ESPlorer
安裝JAVA環境 https://java.com/zh_CN/download/
運行 ESPlorer
ESPlorer.jar文件右擊,打開方式->選擇默認程序->瀏覽,選中jre下bin文件中javaw.exe