代码:

int led_0 = 13;


void setup() {

    pinMode(led_0, OUTPUT);

}


void loop() {

    digitalWrite(led_0, HIGH);

    delay(1000);

    digitalWrite(led_0, LOW);

    delay(1000);

}

arduino实例1:led闪烁_arduino

arduino实例1:led闪烁_arduino_02