资源简介
Esp8266进阶之路【小实战上篇】Windows系统搭建8266的本地Mqtt服务器,局域网点亮一盏LED灯。CSDN博客 http://blog.csdn.net/xh870189248/article/details/78761948
代码片段和文件信息
/*
* 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);
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3709 2017-12-11 19:24 ESP8266_MQTT_CSDN\.cproject
文件 795 2017-12-11 19:24 ESP8266_MQTT_CSDN\.project
....... 427060 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\at\1024+1024\user1.2048.new.5.bin
....... 427060 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\at\1024+1024\user2.2048.new.5.bin
....... 427060 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\at\512+512\user1.1024.new.2.bin
....... 427060 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\at\512+512\user2.1024.new.2.bin
....... 2453 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\at\README.md
....... 428980 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\at_sdio\1024+1024\user1.2048.new.5.bin
....... 428980 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\at_sdio\1024+1024\user2.2048.new.5.bin
....... 428980 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\at_sdio\512+512\user1.1024.new.2.bin
....... 428980 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\at_sdio\512+512\user2.1024.new.2.bin
....... 2453 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\at_sdio\README.md
....... 4096 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\blank.bin
....... 1936 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\boot_v1.2.bin
....... 3856 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\boot_v1.6.bin
....... 4080 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\boot_v1.7.bin
文件 1555654 2017-12-11 20:22 ESP8266_MQTT_CSDN\bin\eagle.dump
文件 32592 2017-12-11 20:22 ESP8266_MQTT_CSDN\bin\eagle.flash.bin
文件 255836 2017-12-11 20:22 ESP8266_MQTT_CSDN\bin\eagle.irom0text.bin
文件 4866847 2017-12-11 20:22 ESP8266_MQTT_CSDN\bin\eagle.S
....... 128 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\esp_init_data_default_v05.bin
....... 128 2017-12-07 20:04 ESP8266_MQTT_CSDN\bin\esp_init_data_default_v08.bin
文件 32592 2017-12-11 20:23 ESP8266_MQTT_CSDN\bin\_temp_by_dltool\downloadPanel1\eagle.flash.bin_rep
文件 128 2017-12-11 20:23 ESP8266_MQTT_CSDN\bin\_temp_by_dltool\downloadPanel1\esp_init_data_default_v08.bin_rep
....... 229 2017-12-07 20:04 ESP8266_MQTT_CSDN\documents\readme.txt
....... 2636 2017-12-07 20:04 ESP8266_MQTT_CSDN\driver_lib\driver\gpio16.c
....... 5307 2017-12-07 20:04 ESP8266_MQTT_CSDN\driver_lib\driver\hw_timer.c
....... 10343 2017-12-07 20:04 ESP8266_MQTT_CSDN\driver_lib\driver\i2c_master.c
....... 7205 2017-12-07 20:04 ESP8266_MQTT_CSDN\driver_lib\driver\key.c
....... 1446 2017-12-07 20:04 ESP8266_MQTT_CSDN\driver_lib\driver\Makefile
............此处省略403个文件信息
相关资源
- 基于NONOS_SDK动手做个8266毕设小案例,
- 8266的所有的UDP、TCP协议的工程
- 8266的SmartConfig与Airkiss一键配网的Dem
- ESP8266模块激活工具
- stm32 8266 局域网 控制灯的开关
- STM32+MQTT+SIM800使用AT指令实现
- 实现乐鑫esp8266的无线OTA升级,实现远
- STM32 控制ESP8266 WIFI模块 连接OneNET
- ESP8266和stm32之四实现LCD联网
-
ESP8266_NONOS_SDK-2.2.1_ba
sed_USARTrevised. - 环境监测系统
- esp8266创建MQTT任务,订阅接收和发布发
- 正点原子mini开发板+DHT11测量温湿度上
- STM32&ESP8266;开发板电路图
- 基于STM32的MQTT移植
- STM32f103 物联网OV2640摄像头wifi传送
- 安信可ESP8266模块调试工具V3.0.0
- windows下基于QT5.7的mqttClient测试上位机
- 基于物联网的智慧宿舍的设计
- 百度云IoT物联网平台 -ESP8266-MQTT 1路开
- OneNet云IoT物联网平台 ESP8266 MQTT 1路开
- esp8266固件烧写.zip
- stm32esp8266连web服务器.rar
- ESP8266 SDK入门指南
- ESP8266原理图和封装
- MT2503或FreeRTOS上移植MQTT协议
- esp8266-NONOS_SDK-2.2.1_AT
- ESP8266二次开发源码
- esp8266和stm32之五,能连接路由器和增
- f103 c8t6 esp8266连接阿里云.rar
评论
共有 条评论