上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页
摘要: 基于ESP-IDF4.1 1 #include <stdio.h> 2 #include <string.h> 3 #include <sys/unistd.h> 4 #include <sys/stat.h> 5 #include "esp_err.h" 6 #include "esp_log.h 阅读全文
posted @ 2020-11-10 18:15 kerwin cui 阅读(3654) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1 1 #include <stdio.h> 2 #include "freertos/FreeRTOS.h" 3 #include "freertos/task.h" 4 #include "esp_system.h" 5 #include "nvs_flash.h" 6 # 阅读全文
posted @ 2020-11-10 17:28 kerwin cui 阅读(673) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1 1 #include <stdio.h> 2 #include "freertos/FreeRTOS.h" 3 #include "freertos/task.h" 4 #include "esp_system.h" 5 #include "nvs_flash.h" 6 # 阅读全文
posted @ 2020-11-10 16:40 kerwin cui 阅读(559) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1 #include <string.h> #include <stdlib.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #inc 阅读全文
posted @ 2020-11-10 11:17 kerwin cui 阅读(1322) 评论(0) 推荐(0) 编辑
摘要: 基于ESP-IDF4.1版本 main.c文件如下: #include <string.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #include " 阅读全文
posted @ 2020-11-09 22:36 kerwin cui 阅读(1508) 评论(0) 推荐(0) 编辑
摘要: 1.在FreeRTOS中,使用的数据类型虽然都是标准C里面的数据类型,但是针对不同的处理器,对标准C的数据类型又进行了重新定义。 2.链表由节点组成,节点与节点之间首尾相连,节点包含用于指向后一个节点的指针。节点都是自定义类型的数据结构,可以使单个数据、数组、指针数据和自定义的结构体数据类型。 3. 阅读全文
posted @ 2020-11-09 14:45 kerwin cui 阅读(627) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/queue.h" #incl 阅读全文
posted @ 2020-11-08 22:47 kerwin cui 阅读(1151) 评论(1) 推荐(0) 编辑
摘要: FreeRTOS 的一个重要的通信机制 消息队列,消息队列在实际项目中应用较多。 一.消息队列的作用及概念: 消息队列就是通过 RTOS 内核提供的服务,任务或中断服务子程序可以将一个消息(注意,FreeRTOS消息队列传递的是实际数据,并不是数据地址,RTX,uCOS-II 和 uCOS-III 阅读全文
posted @ 2020-11-06 17:41 kerwin cui 阅读(2047) 评论(0) 推荐(0) 编辑
摘要: #include <driver/gpio.h> #include <esp_task_wdt.h> #include <freertos/FreeRTOS.h> #include <freertos/queue.h> #include <freertos/semphr.h> #include <f 阅读全文
posted @ 2020-11-06 17:02 kerwin cui 阅读(1694) 评论(0) 推荐(0) 编辑
摘要: ES​P32芯片配有48个具有多种功能的引脚。并非所有的引脚都暴露在所有的ESP32开发板中,有些引脚不能使用。 关于如何使用ESP32 GPIO有很多问题。你应该用什么pin?在项目中应该避免使用哪些pin?本文旨在成为一个为ESP32的GPIO提供一个简单易懂的参考指南。 下图显示了ESP-WR 阅读全文
posted @ 2020-11-06 00:33 kerwin cui 阅读(8187) 评论(0) 推荐(0) 编辑
摘要: 格式说明由“%”和格式字符组成,如%d%f等。它的作用是将输出的数据转换为指定的格式输出。格式说明总是由“%”字符开始的。 格式字符有d,o,x,u,c,s,f,e,g等。 如 %d整型输出,%ld长整型输出, %o以八进制数形式输出整数, %x以十六进制数形式输出整数,或输出字符串的地址。 %u以 阅读全文
posted @ 2020-10-22 01:07 kerwin cui 阅读(1498) 评论(0) 推荐(0) 编辑
摘要: 1.makefile:定义了一系列的规则来指定哪些文件需要先编译,哪些文件需要后编译,哪些文件需要重新编译,甚至于进行更复杂的功能操作,因为 makefile就像一个Shell脚本一样,也可以执行操作系统的命令。makefile文件保存了编译器和连接器的参数选项,还表述了所有源文件之间的关系(源代码 阅读全文
posted @ 2020-10-15 15:48 kerwin cui 阅读(1302) 评论(0) 推荐(0) 编辑
摘要: 搭建ESP32A1S的ADF开发环境 一,获取IDF和IDF-TOOL adf是乐鑫的音频开发框架,里面有许多乐鑫的音频开发API,同时ADF是基于IDF的。这一部分可以按照官网的教程一步一步来。官网教程地址:ADF安装指南首先下载esp-idf,如果是第一次使用idf,可以在官网下载一个idf工具 阅读全文
posted @ 2020-10-11 00:42 kerwin cui 阅读(1621) 评论(0) 推荐(0) 编辑
摘要: 有几种方法可以将模拟音频数据输入到ESP32中。 直接从内置的模数转换器(ADC)读取 这对于一次性读取很有用,但不适用于高采样率。 使用I2S通过DMA读取内置ADC 适用于模拟麦克风,例如MAX4466和MAX9814 使用I2S直接从I2S兼容外设读取 对于SPH0645LM4H,INPM44 阅读全文
posted @ 2020-09-29 20:39 kerwin cui 阅读(10050) 评论(0) 推荐(0) 编辑
摘要: ionic5 modal使用过程中,在模态窗中打开另外一个模态窗,浏览器中显示正常,但是andorid8系统真机调试时,关闭最上层模态窗,上级模态窗DOM中存在,但是不显示。 原因是android版本太低,应该是9以下版本,不支持web animation导致多级模态窗关闭其中一个,共享的样式丢失, 阅读全文
posted @ 2020-07-18 22:49 kerwin cui 阅读(305) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 14 下一页