![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
爆肝微控
干货分享,如有雷同,纯属巧合。希望博文中有遗漏的地方,或者表述不妥的地方,希望各位能指正。
展开
-
利用重力加速度传感器,获取芯片相对水平位置的角度
利用重力加速度传感器,获取芯片相对水平位置的角度原创 2022-09-20 16:03:59 · 757 阅读 · 0 评论 -
参数比例缩小函数
需要将变化的数据缩小到一定范围内变动原创 2022-09-20 10:25:36 · 139 阅读 · 0 评论 -
单片机按键不阻塞检测(单击双击长按)
该驱动用于检测按键,不限平台,只要用c语言的均可运行。原创 2022-09-13 10:10:30 · 1780 阅读 · 3 评论 -
热敏电阻(NTC)温度计算,C语言
本文旨在帮助需要获取NTC温度的小伙伴。原创 2022-08-31 15:19:08 · 3247 阅读 · 1 评论 -
呼吸灯程序(非阻塞)
废话不多说,贴代码#define BreatheMax 280void BreatheLed(void){ static unsigned char B_Reverse= 0; static int Low_Time = 0; static int tem = 0; if(!B_Reverse) //渐亮 { tem++; //该变量会从0~BreatheMax循环,代表PWM的周期 if(tem > BreatheMax) { tem = 0;原创 2020-09-18 15:02:22 · 3772 阅读 · 3 评论