自学单片机编程(三) 流水灯代码

自学单片机变成已经三天了,因而首先写一个关于流水灯的编程代码。web 1、编写流水灯实验 #include <reg51.h> sbit LED1 = P1^0;//定义0/1变量,是由于在电路中通常为高电压以及低电压两种,也就是表明者0或1 sbit LED2 = P1^1; sbit LED3 = P1^2; sbit LED4 = P1^3; sbit LED5 = P1^4; sbit L
相关文章
相关标签/搜索