- 博客(1)
- 收藏
- 关注
原创 C51流水灯由开关控制自下而上自上而下的实验
源程序#include<reg51.h> #define uchar unsigned char #define uint unsigned int sbit Key=P0^0; void Delay(uint ms); void main() { uchar i,key1,shift; while(1) { key1=Key; if(key1==1) { shift=0x80; for(i=0;i<8;i++) { P1=~shift; Delay(500); shift>&g..
2022-05-25 23:22:50
1088
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅