kehuadong

2024年4月17日

FFT处理

摘要: #include <math.h> // PS: 采集的最高频率为10k,所以采集频率是20k, 然后是左右交替采集, 所以定时器触发周期是40k // typedef struct { // 采集到的数据 uint16_t m_adc_buffer[256*2]; // 零值(初始化时默认为204 阅读全文

posted @ 2024-04-17 11:26 kehuadong 阅读(3) 评论(0) 推荐(0) 编辑

2024年4月8日

tm1640驱动

摘要: #define CLK_H #define CLK_L #define DIN_H #define DIN_L // 延时5us // static void delay(void) { for (uint8_t i = 0; i < 40; i++) { } } // static void st 阅读全文

posted @ 2024-04-08 16:39 kehuadong 阅读(13) 评论(0) 推荐(0) 编辑

2024年1月18日

epoll_t类

摘要: epoll通常用于单线程读取多个串口的数据 #include <unistd.h> #include <sys/epoll.h> #include <mutex> #include <functional> #include <map> using namespace std; // 这里使用了mu 阅读全文

posted @ 2024-01-18 15:09 kehuadong 阅读(2) 评论(0) 推荐(0) 编辑

2024年1月16日

绘制像素buffer

摘要: #ifndef CLASS_BITMAP_H #define CLASS_BITMAP_H #include <stdio.h> #include <windows.h> class cbitmap { public: cbitmap(); ~cbitmap(); public: // 创建 voi 阅读全文

posted @ 2024-01-16 16:40 kehuadong 阅读(4) 评论(0) 推荐(0) 编辑

2023年8月22日

Makefile语法

摘要: 从命令行输入的目标 $(MAKECMDGOALS) 查看变量是在那里定义的, $(origin M) 阅读全文

posted @ 2023-08-22 09:44 kehuadong 阅读(8) 评论(0) 推荐(0) 编辑

linux教程

摘要: Linux 教程 | 菜鸟教程 (runoob.com) 阅读全文

posted @ 2023-08-22 09:35 kehuadong 阅读(2) 评论(0) 推荐(0) 编辑

2023年8月13日

linux 更新时区

摘要: sudo cp /etc/localtime /etc/localtime.bak sudo cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime 阅读全文

posted @ 2023-08-13 02:42 kehuadong 阅读(24) 评论(0) 推荐(0) 编辑

2023年8月8日

编译内核 添加了dirty

摘要: "在内核源代码的根目录中创建一个空的.scmversion文件." 阅读全文

posted @ 2023-08-08 02:07 kehuadong 阅读(32) 评论(0) 推荐(0) 编辑

2023年7月19日

linux wifi

摘要: 杀掉hostapd杀掉dhcp ifconfig wlan0 downifconfig wlan0 upwpa_supplicant -Dnl80211 -iwlan0 -c/etc/wpa_supplicant.conf & udhcpc -i wlan0 -n -q -t 6 // // /et 阅读全文

posted @ 2023-07-19 10:52 kehuadong 阅读(23) 评论(0) 推荐(0) 编辑

2023年5月8日

esp32 sdk下载

摘要: https://dl.espressif.cn/dl/esp-idf/ 设置平台 idf.py set-target esp32c3 下载 idf.py -p COM1 flash 观察打印 idf.py -p COM1 monitor 阅读全文

posted @ 2023-05-08 09:12 kehuadong 阅读(96) 评论(0) 推荐(0) 编辑

导航