LED灯

2023-11-17  本文已影响0人  故事的小黄花0517

void setup() {
// put your setup code here, to run once:

pinMode(2,OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
for(int a = 0;a<=10;a++){
digitalWrite(2,HIGH);
delay(50);
digitalWrite(2,LOW);
delay(50);
}
delay(1000);
}

上一篇下一篇

猜你喜欢

热点阅读