
51单片机
_久夏青
这个作者很懒,什么都没留下…
展开
-
51单片机 矩阵密码锁
代码编译环境: Keil uVision5 烧入软件: stc-isp 由于代码较多,所以需要采用模块化 主函数,代码从此处开始执行 main.c #include <REGX52.H> #include "Delay.h" #include "LCD1602.h" #include "MatrixKey.h" unsigned char KeyNum; unsigned int Password, Count; void main() { LCD_Init(); LCD_ShowSt原创 2021-07-11 11:11:33 · 981 阅读 · 1 评论 -
51单片机LED流水灯
实现LED模块流水效果 #include <REGX52.H> #include <INTRINS.H> //生成延时x ms函数 void Delay1ms(unsigned int xms) //@12.000MHz { unsigned char i, j; while(xms) { i = 2; j = 239; do { while (--j); } while (--i); xms--; } } void main() {原创 2021-07-11 10:58:37 · 180 阅读 · 0 评论