上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页
摘要: cordova自定义插件开发:1.cordova安装:npm install -g cordova2.plugman安装:npm install -g plugman3.cordova创建工程:cordova create demo com.lmr.android4.生成安卓工程:cordova p 阅读全文
posted @ 2020-11-14 10:36 kerwin cui 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1 1 /* 2 * 刷直流电动机控制示例,代码通过L298电机芯片测试 3 */ 4 5 #include <stdio.h> 6 7 #include "freertos/FreeRTOS.h" 8 #include "freertos/task.h" 9 #include 阅读全文
posted @ 2020-11-13 21:33 kerwin cui 阅读(1795) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include "freertos/FreeRTOS.h" 4 #include "freertos/task.h" 5 #include "driver/gpio.h" 6 #in 阅读全文
posted @ 2020-11-13 20:30 kerwin cui 阅读(2489) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1 1 #include <string.h> 2 #include "freertos/FreeRTOS.h" 3 #include "freertos/task.h" 4 #include "esp_system.h" 5 #include "esp_event.h" 6 阅读全文
posted @ 2020-11-13 11:34 kerwin cui 阅读(1250) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1 1 #include "freertos/FreeRTOS.h" 2 #include "freertos/task.h" 3 #include "esp_system.h" 4 #include "esp_event.h" 5 #include "esp_log.h" 6 阅读全文
posted @ 2020-11-12 23:38 kerwin cui 阅读(2967) 评论(0) 推荐(0) 编辑
摘要: 默认的事件循环是一个事件循环的系统应用发布和处理事件(例如,Wi-Fi无线事件)。 基于ESP-IDF4.1 1 #include "esp_log.h" 2 #include "freertos/FreeRTOS.h" 3 #include "freertos/task.h" 4 #include 阅读全文
posted @ 2020-11-12 19:51 kerwin cui 阅读(1344) 评论(0) 推荐(0) 编辑
摘要: 看门狗机制用于监控嵌入式系统运行并在发生不可知的软硬件故障时将系统复位。系统正常运行时,看门狗定时器溢出之前会被重置计数值,也就是“喂狗”。定时器溢出意味着无法“喂狗”,系统异常。 基于ESP-IDF4.1 1 #include <stdio.h> 2 #include <stdlib.h> 3 # 阅读全文
posted @ 2020-11-12 12:42 kerwin cui 阅读(3238) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1 1 #include <stdio.h> 2 #include <string.h> 3 #include <unistd.h> 4 #include "esp_timer.h" 5 #include "esp_log.h" 6 #include "esp_sleep.h" 阅读全文
posted @ 2020-11-12 12:19 kerwin cui 阅读(1256) 评论(0) 推荐(0) 编辑
摘要: 尽管FreeRTOS提供了软件计时器,但这些计时器有一些限制: 最大分辨率等于RTOS滴答周期 计时器回调从低优先级任务分派 硬件计时器不受这两个限制,但是通常它们使用起来不太方便。例如,应用组件可能需要定时器事件在将来的特定时间触发,但是硬件定时器仅包含一个用于中断产生的“比较”值。这意味着需要在 阅读全文
posted @ 2020-11-12 10:58 kerwin cui 阅读(1728) 评论(0) 推荐(0) 编辑
摘要: 1.ESP32 系列芯片提供三种可配置的睡眠模式,针对这些睡眠模式,我们提供了了多种低功耗解决方案,用户可以结合具体需求选择睡眠模式并进行配置。三种睡眠模式如下: Modem-sleep 模式:CPU 可运行,时钟可被配置。Wi-Fi/蓝牙基带和射频关闭。 Light-sleep 模式:CPU 暂停 阅读全文
posted @ 2020-11-11 23:20 kerwin cui 阅读(6454) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1 #include <stdio.h> #include <stdint.h> #include <stddef.h> #include <string.h> #include "esp_wifi.h" #include "esp_system.h" #include "nv 阅读全文
posted @ 2020-11-11 20:49 kerwin cui 阅读(882) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1 #include <stdio.h> #include "esp_wifi.h" #include "esp_system.h" #include "nvs_flash.h" #include "esp_event.h" #include "protocol_example 阅读全文
posted @ 2020-11-11 20:29 kerwin cui 阅读(1602) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1 #include <string.h> #include <stdlib.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_log.h" #include "esp_syst 阅读全文
posted @ 2020-11-11 16:14 kerwin cui 阅读(2405) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1 #include <esp_wifi.h> #include <esp_event.h> #include <esp_log.h> #include <esp_system.h> #include <nvs_flash.h> #include <sys/param.h> # 阅读全文
posted @ 2020-11-11 14:40 kerwin cui 阅读(2454) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1 1 /* 2 FAT文件系统存储文件,使用磨损均衡库wear-leveling 3 */ 4 5 #include <stdlib.h> 6 #include <stdio.h> 7 #include <string.h> 8 #include "esp_vfs.h" 9 阅读全文
posted @ 2020-11-10 18:51 kerwin cui 阅读(2221) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 14 下一页