查看ESP8266 UART的源代码
←
ESP8266 UART
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== 快速尝试 == Noduino Falcon 开发板 或 nodemcu v1.0 开发板,USB 连上 PC 下载 SDK: <source lang=bash> # clone the whole sdk $ git clone git://github.com/icamgo/noduino-sdk.git noduino-sdk # fetch the toolchain of esp8266 $ cd noduino-sdk $ git submodule init $ git submodule update $ cd toolchain $ ./gen.py # generate the toolchain (you need Python 2.7) </source> 插上开发板,编译上传一步完成: <source lang=bash> $ cd ../example/hello $ make flash Uploading 28080 bytes from build/0x00000.bin to flash at 0x00000000 ............................ Uploading 185236 bytes from build/0x40000.bin to flash at 0x00040000 ............................................................................................... </source> 上传完成后,11520 的波特率打开串口,就能看到定时输出的 "Hello World!" : <source lang=bash> $ minicom -b 115200 -o -D /dev/ttyUSB0Welcome to minicom 2.6.1 Welcome to minicom 2.6.1 OPTIONS: I18n Compiled on Feb 11 2012, 18:12:55. Port /dev/ttyUSB0 Press CTRL-A Z for help on special keys Hello World! Hello World! Hello World! Hello World! Hello World! <br><br> == 总览 == ;;UART0: <pre> U0TXD --- PIN26 U0RXD --- PIN25 U0CTS --- PIN12 (MTCK) U0RTS --- PIN13 (MTDO) </pre> ;;UART1 -- Only ouput pin, used for printing of debug information U1TXD --- PIN14 (GPIO2) Downloading: U0TXD+U0RXD or GPIO2+U0RXD Communicating: UART0: U0TXD, U0RXD, MTDO(U0RTS), MTCK(U0CTS) Debugging: UART1_TXD (GPIO2) can be used to print debugging information. By default, UART0 will output some printed information when the device is powered on and is booting up. If this issue exerts influence on some specific applications, users can exchange the inner pins of UART when initializing, that is to say, exchange U0TXD, U0RXD with U0RTS, U0CTS <br><br> == SDK API == After calling void system_uart_swap(): <pre> U0TXD --- PIN13 (MTDO) ---> Output pin, NOT be pulled up externally in the initiallization stage U0RXD --- PIN12 (MTCK) U0CTS --- PIN25 U0RTS --- PIN26 </pre> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br> <br><br>
返回到
ESP8266 UART
。
个人工具
3.139.100.219
该IP地址的讨论
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面