![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
51单片机
一品.
离人群越远,离自己就越近
展开
-
[51单片机]两按键实现数码管加减
#include<reg52.h>sbit key1 = P1^3;sbit key2 = P1^5;sbit duan = P2^1;sbit wei = P2^0;time(){ unsigned int i; for(i=0;i<10000;i++);}led(int num){ char code wz[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}; char code xs[]={0x3f,0x06,0x5b,.原创 2022-01-29 15:27:07 · 8896 阅读 · 1 评论 -
[51单片机]共阴数码管动态扫描1-65535累加
#include<reg52.h>sbit duan=P2^2;sbit wei=P2^3;time(){ unsigned int i; for(i=0;i<1000;i++);}main(){ int arr[10]; char code wz[]={0xfe,0xfd,0xfb,0xf7,0xef,0xdf,0xbf,0x7f}; char code xs[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6.原创 2022-01-24 14:41:57 · 759 阅读 · 0 评论 -
[51单片机]移位操作符实现LED流水灯
详细描述如何使用赋值,移位,逻辑门来实现LED流水灯的效果原创 2022-01-22 21:19:02 · 11439 阅读 · 1 评论