下你所需,载你所想!
汇集开发技术源码资料

按键控制LED灯.c

:451B :1 :2022-09-30 15:13:30

部分简介

按键控制LED灯.c如果开发者对于本文件有需要的可以参考。
void main()
{
//初始化
init();
//流水灯
while(1)
{
delay(120000);
P1 = 0x01;
delay(120000);
P1 = 0x03;
delay(120000);
P1 = 0x0b;
delay(120000);
P1 = 0x1b;

delay(120000);
P1 = 0x1A;
delay(120000);
P1 = 0x18;
delay(120000);
P1 = 0x10;
delay(120000);
P1 = 0x00;

热门推荐

相关文章