#define LED 13
void setup() {
pinMode(LED,OUTPUT);//设置为输出数字引脚
}
void loop() {
digitalWrite(LED,HIGH);//点亮LED
delay(100);
digitalWrite(LED,LOW);//熄灭LED
delay(100);
}
【Arduino】1.1 点亮LED
最新推荐文章于 2024-10-10 10:00:00 发布
#define LED 13
void setup() {
pinMode(LED,OUTPUT);//设置为输出数字引脚
}
void loop() {
digitalWrite(LED,HIGH);//点亮LED
delay(100);
digitalWrite(LED,LOW);//熄灭LED
delay(100);
}