kehuadong

2024年7月7日

[十万个为什么] ppm图片转png图片

摘要: #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #define STB_IMAGE_WRITE_IMPLEMENTATION #include "stb_image_write.h" str 阅读全文

posted @ 2024-07-07 12:16 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

2024年7月5日

[十万个为什么][lua] luaL_setfuncs 添加cclouse到table的过程

摘要: 注意: 是 luaL_setfuncs添加cclouse才有复制upval 如果只是lua_pushcclosure, 会吃掉upval, 然后f放在吃掉upval之后的top 阅读全文

posted @ 2024-07-05 09:29 kehuadong 阅读(1) 评论(0) 推荐(0) 编辑

2024年7月4日

[十万个为什么] mingw头文件路径

摘要: MinGW中的头文件路径_mingwin32编译指定头文件-CSDN博客 阅读全文

posted @ 2024-07-04 20:35 kehuadong 阅读(0) 评论(0) 推荐(0) 编辑

[十万个为什么] vim练习

摘要: IDEA + Vim,竟可以这么牛逼!!_vim_模式_Idea (sohu.com) 阅读全文

posted @ 2024-07-04 19:54 kehuadong 阅读(2) 评论(0) 推荐(0) 编辑

2024年7月3日

[十万个为什么] 如何做一个目录网页

摘要: 如何做一个左侧目录,右侧内容的网页 <html> <head> <style> #dir { float: left; width: 200px; border: solid 1px #ccc; } #content { width: 800px; border: solid 1px #0c0; } 阅读全文

posted @ 2024-07-03 20:19 kehuadong 阅读(2) 评论(0) 推荐(0) 编辑

2024年5月21日

翻译

摘要: x 阅读全文

posted @ 2024-05-21 14:53 kehuadong 阅读(2) 评论(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,a56爆大奖在线娱乐采集频率是20k, 然后是左右交替采集, a56爆大奖在线娱乐定时器触发周期是40k // typedef struct { // 采集到的数据 uint16_t m_adc_buffer[256*2]; // 零值(初始化时默认为204 阅读全文

posted @ 2024-04-17 11:26 kehuadong 阅读(6) 评论(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 阅读(47) 评论(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) 编辑

导航