- 博客(3)
- 收藏
- 关注
原创 矩阵键盘(自用)
#include "reg52.h"sfr P4 = 0xc0; //原无定义P4端口,查询单片机手册后将其编译,对应0xc0sbit R1 = P3^0;sbit R2 = P3^1;sbit R3 = P3^2;sbit R4 = P3^3;sbit C4 = P3^4;sbit C3 = P3^5;sbit C2 = P4^2;sbit C1 = P4^4; unsigned char code SMG_duanma[18]= {0xc0,0.
2021-12-16 00:03:03 1044 1
原创 动态数码管(自用)
#include"reg52.h"unsigned char yue = 12;unsigned char code SMG_duanma[18]= {0x00,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8, 0x80,0x90,0x88,0x80,0xc6,0xc0,0x86,0x8e, 0xbf,0x7f}; void SelectHC573(unsigned char channel){ switch(channel) {.
2021-12-16 00:01:01 740
原创 静态数码管(自用)
#include"reg52.h"unsigned char code SMG_duanma[18]= {0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8, 0x80,0x90,0x88,0x80,0xc6,0xc0,0x86,0x8e, 0xbf,0x7f}; //数码管的不同显示 具体看记录 void Daiay(unsigned int t){ while(t--); while(t--);}void.
2021-12-15 23:28:41 136
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人