Advertisement
ccarman602

Lesson-1-LED

Nov 25th, 2021 (edited)
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //LED Blink
  2. //The LED will turn on for one second and then turn off for one second
  3. int ledPin = 4;
  4. void setup() {
  5.     pinMode(ledPin, OUTPUT);
  6. }
  7. void loop() {
  8.     digitalWrite(ledPin, HIGH);
  9.     delay(1000);
  10.     digitalWrite(ledPin, LOW);
  11.     delay(1000);
  12. }
  13.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement