kehuadong

2024年5月21日

翻译

摘要: x 阅读全文

posted @ 2024-05-21 14:53 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

[lua][lpeg]官网

摘要: LPeg - Parsing Expression Grammars For Lua (puc-rio.br) lpeg-primer.pdf (puc-rio.br) local lpeg = require "lpeg" -- 本地变量 local P = lpeg.P local S = lp 阅读全文

posted @ 2024-05-21 14:20 kehuadong 阅读(2) 评论(0) 推荐(0) 编辑

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 阅读(5) 评论(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 阅读(17) 评论(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 阅读(3) 评论(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 阅读(6) 评论(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:41 kehuadong 阅读(24) 评论(0) 推荐(0) 编辑

2023年8月8日

编译内核 添加了dirty

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

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

导航