资源简介
玩转ESP8266 SDK编程【实例】,
第1集(公开):套件介绍
观看地址:http://v.youku.com/v_show/id_XMTUzNzM3ODg3Mg==.html
操作演示:http://pan.baidu.com/s/1dEGjwVv(视频演示全家福)
第2集(加密):组装WIFI模块,在面包板上搭建实验电路,下载厂家固件并调试
观看地址:http://v.youku.com/v_show/id_XMTUzNzM3NzY1Mg==.html (密码:021295)
操作演示:http://v.youku.com/v_show/id_XMTUzNjkzMDc5Mg==.html
第3集(加密):搭建开发环境,编写第一个程序:串口打印字符
观看地址:http://v.youku.com/v_show/id_XMTUzNzM3NzQ2NA==.html (密码:036370)
第4集(加密):LED闪烁(控制WIFI模块的GPIO口)
观看地址:http://v.youku.com/v_show/id_XMTUzODQ4Mzc4NA==.html (密码:048426)
操作演示:http://v.youku.com/v_show/id_XMTUzNjg2NjQzNg==.html
第5集(加密):按键控制LED(读取GPIO口的状态)
观看地址:http://v.youku.com/v_show/id_XMTUzODQ4Mzc1Mg==.html (密码:054524)
操作演示:http://v.youku.com/v_show/id_XMTUzNjg1MDU0MA==.html
第6集(加密):WIFI连接(把WIFI模块作为服务器,设置为AP模式)
观看地址:http://v.youku.com/v_show/id_XMTU0NjIyMjUxNg==.html (密码:064663)
第7集(加密):UDP通信(把WIFI模块作为服务器,UDP_Service)
观看地址:http://v.youku.com/v_show/id_XMTU0NjIyMjE2NA==.html (密码:071725)
第8集(加密):TCP通信(把WIFI模块作为服务器,TCP_Service,并用电脑控制LED)
观看地址:http://v.youku.com/v_show/id_XMTU0NjIyMTQwNA==.html (密码:082890)
第9集(加密):WIFI连接(把WIFI模块作为客户端,设置为STATION模式)
观看地址:http://v.youku.com/v_show/id_XMTU0NjIyMTM2OA==.html (密码:097974)
第10集(加密):UDP通信(把WIFI模块作为客户端,UDP_Client)
观看地址:http://v.youku.com/v_show/id_XMTU0NjIyMTM2NA==.html (密码:103054)
第11集(加密):TCP通信(把WIFI模块作为客户端,TCP_Client,并用手机控制LED)
观看地址:http://v.youku.com/v_show/id_XMTU0NjM3MDUwOA==.html (密码:112997)
操作演示:http://v.youku.com/v_show/id_XMTUzNjg1MDQ4OA==.html
第12集(加密):渐变灯(PWM)
观看地址:http://v.youku.com/v_show/id_XMTU1MTg5Mjg2NA==.html (密码:122826)
操作演示:http://v.youku.com/v_show/id_XMTUzNjg1MDQ2NA==.html
第13集(加密):七彩灯(PWM控制,并用手机控制LED)
观看地址:http://v.youku.com/v_show/id_XMTU1MTg5MjgwNA==.html (密码:133741)
操作演示:http://v.youku.com/v_show/id_XMTUzNjg1MDEwOA==.html
第14集(加密):光控灯(ADC)
观看地址:http://v.youku.com/v_show/id_XMTU1NDE0NTg5Mg==.html (密码:145693)
操作演示:http://v.youku.com/v_show/id_XMTUzNjg1MDAyMA==.html
第15集(加密):串口通讯(UART中断)
观看地址:http://v.youku.com/v_show/id_XMTU1NDE0NTg4MA==.html (密码:156528
代码片段和文件信息
/*
* File : uart.c
* Copyright (C) 2013 - 2016 Espressif Systems
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of version 3 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not see .
*/
#include “ets_sys.h“
#include “osapi.h“
#include “driver/uart.h“
#include “osapi.h“
#include “os_type.h“
// UartDev is defined and initialized in rom code.
extern UartDevice UartDev;
LOCAL struct UartBuffer* pTxBuffer = NULL;
LOCAL struct UartBuffer* pRxBuffer = NULL;
/*uart demo with a system task to output what uart receives*/
/*this is a example to process uart data from taskplease change the priority to fit your application task if exists*/
/*it might conflict with your task if soplease arrange the priority of different task or combine it to a different event in the same task. */
#define uart_recvTaskPrio 0
#define uart_recvTaskQueueLen 10
os_event_t uart_recvTaskQueue[uart_recvTaskQueueLen];
#define DBG
#define DBG1 uart1_sendStr_no_wait
#define DBG2 os_printf
LOCAL void uart0_rx_intr_handler(void *para);
/******************************************************************************
* FunctionName : uart_config
* Description : Internal used function
* UART0 used for data TX/RX RX buffer size is 0x100 interrupt enabled
* UART1 just used for debug output
* Parameters : uart_no use UART0 or UART1 defined ahead
* Returns : NONE
*******************************************************************************/
LOCAL void ICACHE_FLASH_ATTR
uart_config(uint8 uart_no)
{
if (uart_no == UART1){
PIN_FUNC_SELECT(PERIPHS_IO_MUX_GPIO2_U FUNC_U1TXD_BK);
}else{
/* rcv_buff size if 0x100 */
ETS_UART_INTR_ATTACH(uart0_rx_intr_handler &(UartDev.rcv_buff));
PIN_PULLUP_DIS(PERIPHS_IO_MUX_U0TXD_U);
PIN_FUNC_SELECT(PERIPHS_IO_MUX_U0TXD_U FUNC_U0TXD);
#if UART_HW_RTS
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTDO_U FUNC_U0RTS); //HW FLOW CONTROL RTS PIN
#endif
#if UART_HW_CTS
PIN_FUNC_SELECT(PERIPHS_IO_MUX_MTCK_U FUNC_U0CTS); //HW FLOW CONTROL CTS PIN
#endif
}
uart_div_modify(uart_no UART_CLK_FREQ / (UartDev.baut_rate));//SET BAUDRATE
WRITE_PERI_REG(UART_CONF0(uart_no) ((UartDev.exist_parity & UART_PARITY_EN_M) << UART_PARITY_EN_S) //SET BIT AND PARITY MODE
| ((UartDev.parity & UART_PARITY_M) <
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3685 2016-04-11 21:20 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\.cproject
文件 832 2015-07-17 13:31 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\.project
文件 442967 2016-04-11 21:23 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\.output\eagle\debug\image\eagle.app.v6.out
文件 47796 2016-04-11 21:22 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\driver\.output\eagle\debug\lib\libdriver.a
文件 1110 2016-04-11 21:22 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\driver\.output\eagle\debug\obj\uart.d
文件 47112 2016-04-11 21:22 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\driver\.output\eagle\debug\obj\uart.o
文件 1490 2015-07-03 20:29 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\driver\Makefile
文件 27382 2016-04-10 13:26 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\driver\uart.c
文件 3226 2015-05-22 15:09 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\gen_misc.bat
文件 3276 2015-05-22 15:08 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\gen_misc.sh
文件 6232 2015-07-03 20:29 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\include\driver\uart.h
文件 7038 2015-07-03 20:29 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\include\driver\uart_register.h
文件 1148 2015-07-03 20:29 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\include\user_config.h
文件 2887 2016-04-11 21:23 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\Makefile
文件 8794 2016-04-11 21:23 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\user\.output\eagle\debug\lib\libuser.a
文件 1251 2016-04-11 21:23 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\user\.output\eagle\debug\obj\user_main.d
文件 8568 2016-04-11 21:23 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\user\.output\eagle\debug\obj\user_main.o
文件 1522 2015-07-03 20:29 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\user\Makefile
文件 2261 2016-04-24 13:39 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\app\user\user_main.c
文件 32320 2015-07-03 20:52 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\bin\at\eagle.flash.bin
文件 222808 2015-07-03 20:52 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\bin\at\eagle.irom0text.bin
文件 962 2015-07-03 21:20 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\bin\at\readme.txt
文件 261168 2015-07-03 20:52 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\bin\at\user1.1024.new.2.bin
文件 261168 2015-07-03 20:52 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\bin\at\user2.1024.new.2.bin
文件 4096 2015-07-03 20:29 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\bin\blank.bin
文件 1936 2015-01-23 15:19 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\bin\boot_v1.2.bin
文件 2752 2015-05-12 11:20 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\bin\boot_v1.4(b1).bin
文件 1672571 2015-07-18 15:03 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\bin\eagle.dump
文件 28000 2016-04-11 21:24 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\bin\eagle.flash.bin
文件 171636 2016-04-11 21:24 玩转ESP8266 SDK编程【实例】\10_PWM(渐变灯)\bin\eagle.irom0text.bin
............此处省略1625个文件信息
评论
共有 条评论