Formation en Arduino :
Circuit Avec Programme :
Composants:
-----------------
-LED
-220 ohm resistance
Code :
------------------
-----------------
-LED
-220 ohm resistance
Code :
------------------
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
(HIGH is the voltage level)
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}
digitalWrite(LED_BUILTIN, HIGH);
(HIGH is the voltage level)
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}
Enregistrer un commentaire