摘要: void GetSelectPointerPos(uint8_t *xsp, uint8_t *ysp,uint8_t *P){ *xsp = 40*((*P)/4); if((*P)>3&&((*P)<8)) { *ysp = ((*P)-4) *2; } else if((*P)== 8) { 阅读全文
posted @ 2022-01-04 15:43 98年互联网打工老阿姨 阅读(28) 评论(0) 推荐(0)
摘要: int main(void) { /* USER CODE BEGIN 1 */ /* USER CODE END 1 */ /* MCU Configuration */ /* Reset of all peripherals, Initializes the Flash interface an 阅读全文
posted @ 2022-01-04 15:35 98年互联网打工老阿姨 阅读(58) 评论(0) 推荐(0)
摘要: 微信小程序开发学习笔记第一弹 之开发准备工作 1.开发上手网址 微信公众平台mp.weixin.qq.com => 微信小程序开发文档 = 》API。 2.微信 {小程序} 开发账号!!! 个人微信号 3.微信开发者工具 搜索网址:https://mp.weixin.qq.com/wiki => 微 阅读全文
posted @ 2021-08-08 15:30 98年互联网打工老阿姨 阅读(57) 评论(1) 推荐(0)
摘要: 1.准备工作 立创商城,cs1237数据手册一份 cs1237芯片驱动代码一份 2.开始配置寄存器 主要是配置频率! 根据奈奎斯特定理,采样周期>2w。 CSD_Register_Config(&CSD1,0x50); 0x50=》0101 0000 寄存器6,4位高,其余为0;代表adc输出速率4 阅读全文
posted @ 2021-08-05 16:30 98年互联网打工老阿姨 阅读(758) 评论(0) 推荐(0)
摘要: 1.频率 /**根据需要的频率,求得单次高低电平的周期,再以50%占空比输出。**/ //设定开关频率 相当于 模拟输出一个pwm波,eg:100hz 50% void led_frequency_ctrl(void) { period = 1/frequency*1000; //1 if(Chec 阅读全文
posted @ 2021-07-29 14:52 98年互联网打工老阿姨 阅读(127) 评论(0) 推荐(0)
摘要: rt_timer_t r_slave_t = rt_timer_create("r_check_t", check_timerout, RT_NULL, 3000, RT_TIMER_FLAG_ONE_SHOT); rt_timer_t w_slave_t = rt_timer_create("w_ 阅读全文
posted @ 2021-06-11 10:26 98年互联网打工老阿姨 阅读(342) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/Gupaoxueyuan/article/details/90605846?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearn 阅读全文
posted @ 2021-05-11 17:33 98年互联网打工老阿姨 阅读(34) 评论(0) 推荐(0)