资源简介
基于NONOS_SDK,动手做个8266毕设小案例,smartConfig + MQTT协议轻松实现远程控制一盏LED。http://blog.csdn.net/xh870189248/article/details/79052347

代码片段和文件信息
/*
* ESPRESSIF MIT License
*
* Copyright (c) 2016
*
* Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only in which case
* it is free of charge to any person obtaining a copy of this software and associated
* documentation files (the “Software“) to deal in the Software without restriction including
* without limitation the rights to use copy modify merge publish distribute sublicense
* and/or sell copies of the Software and to permit persons to whom the Software is furnished
* to do so subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or
* substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
* IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY WHETHER
* IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*
*/
#include “ets_sys.h“
#include “osapi.h“
#include “driver/gpio16.h“
void ICACHE_FLASH_ATTR
gpio16_output_conf(void)
{
WRITE_PERI_REG(PAD_XPD_DCDC_CONF
(READ_PERI_REG(PAD_XPD_DCDC_CONF) & 0xffffffbc) | (uint32)0x1); // mux configuration for XPD_DCDC to output rtc_gpio0
WRITE_PERI_REG(RTC_GPIO_CONF
(READ_PERI_REG(RTC_GPIO_CONF) & (uint32)0xfffffffe) | (uint32)0x0); //mux configuration for out enable
WRITE_PERI_REG(RTC_GPIO_ENABLE
(READ_PERI_REG(RTC_GPIO_ENABLE) & (uint32)0xfffffffe) | (uint32)0x1); //out enable
}
void ICACHE_FLASH_ATTR
gpio16_output_set(uint8 value)
{
WRITE_PERI_REG(RTC_GPIO_OUT
(READ_PERI_REG(RTC_GPIO_OUT) & (uint32)0xfffffffe) | (uint32)(value & 1));
}
void ICACHE_FLASH_ATTR
gpio16_input_conf(void)
{
WRITE_PERI_REG(PAD_XPD_DCDC_CONF
(READ_PERI_REG(PAD_XPD_DCDC_CONF) & 0xffffffbc) | (uint32)0x1); // mux configuration for XPD_DCDC and rtc_gpio0 connection
WRITE_PERI_REG(RTC_GPIO_CONF
(READ_PERI_REG(RTC_GPIO_CONF) & (uint32)0xfffffffe) | (uint32)0x0); //mux configuration for out enable
WRITE_PERI_REG(RTC_GPIO_ENABLE
READ_PERI_REG(RTC_GPIO_ENABLE) & (uint32)0xfffffffe); //out disable
}
uint8 ICACHE_FLASH_ATTR
gpio16_input_get(void)
{
return (uint8)(READ_PERI_REG(RTC_GPIO_IN_DATA) & 1);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3730 2018-01-13 18:52 13_ESP8266_smartConfi_MQTT\.cproject
文件 851 2018-01-13 15:14 13_ESP8266_smartConfi_MQTT\.project
文件 427060 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\at\1024+1024\user1.2048.new.5.bin
文件 427060 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\at\1024+1024\user2.2048.new.5.bin
文件 427060 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\at\512+512\user1.1024.new.2.bin
文件 427060 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\at\512+512\user2.1024.new.2.bin
文件 2453 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\at\README.md
文件 428980 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\at_sdio\1024+1024\user1.2048.new.5.bin
文件 428980 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\at_sdio\1024+1024\user2.2048.new.5.bin
文件 428980 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\at_sdio\512+512\user1.1024.new.2.bin
文件 428980 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\at_sdio\512+512\user2.1024.new.2.bin
文件 2453 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\at_sdio\README.md
文件 4096 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\blank.bin
文件 1936 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\boot_v1.2.bin
文件 3856 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\boot_v1.6.bin
文件 4080 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\boot_v1.7.bin
文件 1719631 2018-01-13 18:53 13_ESP8266_smartConfi_MQTT\bin\eagle.dump
文件 34752 2018-01-13 18:54 13_ESP8266_smartConfi_MQTT\bin\eagle.flash.bin
文件 282512 2018-01-13 18:54 13_ESP8266_smartConfi_MQTT\bin\eagle.irom0text.bin
文件 5386722 2018-01-13 18:54 13_ESP8266_smartConfi_MQTT\bin\eagle.S
文件 128 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\bin\esp_init_data_default.bin
文件 34752 2018-01-13 18:56 13_ESP8266_smartConfi_MQTT\bin\_temp_by_dltool\downloadPanel1\eagle.flash.bin_rep
文件 128 2018-01-13 16:17 13_ESP8266_smartConfi_MQTT\bin\_temp_by_dltool\downloadPanel1\esp_init_data_default.bin_rep
文件 142 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\documents\readme.txt
文件 2636 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\driver_lib\driver\gpio16.c
文件 5189 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\driver_lib\driver\hw_timer.c
文件 10343 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\driver_lib\driver\i2c_master.c
文件 7177 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\driver_lib\driver\key.c
文件 1446 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\driver_lib\driver\Makefile
文件 13366 2017-05-05 18:01 13_ESP8266_smartConfi_MQTT\driver_lib\driver\sdio_slv.c
............此处省略203个文件信息
相关资源
- esp8266 win10驱动 cp2102
- CSDN文件---ESP8266.rar
- stm32103c8t6ESP8266串口转WIFI模块TCP服务器
- ESP8266ESP8266安卓控制端源代码
- nudemcu相关工具和固件测试稳定
- 单片机通过ESP8266上传温湿度数据
- STM32F407ZG_ESP8266例程
- ESP8266最新稳定版固件
- ESP8266AP模式控制51单片机亮灯.docx
- ESP8266使用MQTT协议连接阿里云
- 贝壳物联arduino esp8266 demo版本
- ESP8266程序加上MQTT调试工具
- ESP8266_NONOS_SDK-3.0
- ESP8266+OLED屏实现天气预报+温度显示
- stm32f7的esp8266spi并口源程序,速率1.
- weixin_41918266_10384576.zip
- ESP8266连接云平台
- STM32C8T6通过扫描二维码进行智能开锁
- ESP8266微信配网以及公众号绑定
- ESP8266一键烧写工具
- 手机与ESP8266WiFi模块进行通信
- ESP8266搭建MQTT客户端源码
- STM32接入OneNET代码
- STM32-ESP8266-AT
- 毕设-基于ESP8266-12F家电控制系统设计
- 使用MSP432-ESP8266实现小车红外测距和数
- ESP8266_8285_32系列透传固件 JFirmwareESP
- ESP32、ESP8266/85增强型透传固件 JFirmw
- ESP8266-WIFI数据透传
- 基于stm32与esp8266智能家居应用
评论
共有 条评论