Getting Started with Noduino SDK on Windows
来自Jack's Lab
(版本间的差异)
(→尝试 Noduino SDK) |
|||
(未显示1个用户的4个中间版本) | |||
第1行: | 第1行: | ||
== 硬件准备 == | == 硬件准备 == | ||
− | 准备一块 Noduino Falcon V1.0 / Noduino Falcon V2.4 | + | 准备一块 Noduino Falcon V1.0 / Noduino Falcon V2.4 开发板,一根 micro USB 连接线: |
[[文件:Falcon-v1.0-1000.jpg | 600px]] | [[文件:Falcon-v1.0-1000.jpg | 600px]] | ||
[[文件:Falcon-v2.4-800-wiki.png | 600px]] | [[文件:Falcon-v2.4-800-wiki.png | 600px]] | ||
− | |||
− | |||
第23行: | 第21行: | ||
== 准备工具 == | == 准备工具 == | ||
− | 先安装必要的工具,以下所有工具镜像:http://pan.baidu.com/s/ | + | 先安装必要的工具,以下所有工具镜像:http://pan.baidu.com/s/1pKUn8DH |
第67行: | 第65行: | ||
<source lang=bash> | <source lang=bash> | ||
# clone the whole sdk | # clone the whole sdk | ||
− | $ git clone --recursive git://github.com/ | + | $ git clone --recursive git://github.com/noduino/noduino-sdk.git noduino-sdk |
# fetch the toolchain of esp8266 | # fetch the toolchain of esp8266 | ||
第78行: | 第76行: | ||
<source lang=bash> | <source lang=bash> | ||
# try the first example | # try the first example | ||
− | $ cd ../example/blink | + | $ cd ../example/noduino/blink |
</source> | </source> | ||
2018年4月23日 (一) 20:20的最后版本
目录 |
[编辑] 1 硬件准备
准备一块 Noduino Falcon V1.0 / Noduino Falcon V2.4 开发板,一根 micro USB 连接线:
Noduino Falcon V1.0 开发板使用 FT232RL USB 转串口,在多数新的 Windows 系统下无需驱动,老的系统可到 FTDI 官网下载驱动
Noduino Falcon V2.4 开发板使用 CP2102 USB 转串口,到芯片厂家官网下载 Windows 版的驱动:http://www.silabs.com/products/mcu/Pages/USBtoUARTBridgeVCPDrivers.aspx
插上USB,系统发现开发板的串口端口为 COM6:
[编辑] 2 准备工具
先安装必要的工具,以下所有工具镜像:http://pan.baidu.com/s/1pKUn8DH
- 安装 Git for windows
- 安装 mingw32-make (下载后改名 make.exe 放在 /PATH/TO/GIT_For_Win/usr/bin 下即可)
- 安装 python 2.7
安装在 C:\Python27
完了运行 git for windows,修改 /etc/bash.bashrc,加入 python 路径:
export PATH=/c/python27/:$PATH
保存退出
- 安装必须的 pyserial
$ git clone git://github.com/pyserial/pyserial.git $ cd pyserial $ python setup.py install
到此 windows 设置全部完成
[编辑] 3 尝试 Noduino SDK
# clone the whole sdk $ git clone --recursive git://github.com/noduino/noduino-sdk.git noduino-sdk # fetch the toolchain of esp8266 $ cd noduino-sdk/toolchain $ ./gen.py # generate the toolchain (you need Python 2.7)
尝试点灯的例子
# try the first example $ cd ../example/noduino/blink
编译、刷写:
# upload the example to dev board through serial $ make flash
不同平台下,你的串口设备号可能不一样,确认一下你的串口设备,比如在 Windows 下 Falcon 开发板可能被识别为 COM7(设备管理器里查看),则:
$ make flash ESPPORT=COM7
上传完之后,你会很快看到板子靠近 USB 口的 LED 开始在慢闪(大概 2s 间隔)
[编辑] 4 扩展阅读
产品级开发建议使用我们的专业 SDK:
- Getting Started with Noduino SDK on Linux
- Getting Started with Noduino SDK on Mac OS X
- Getting Started with Noduino SDK on Windows
学习、研究、创客可以尝试:
- Getting Started with Noduino on Linux
- Getting Started with Noduino on Mac OS X
- Getting Started with Noduino on Windows
- 更多问题参考: