美文网首页
nodemcu + lua

nodemcu + lua

作者: 8ms | 来源:发表于2017-03-11 21:28 被阅读0次

    安装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

    相关文章

      网友评论

          本文标题:nodemcu + lua

          本文链接:https://www.haomeiwen.com/subject/ciyagttx.html