Advertisement
jbn6972

blinking light

Feb 18th, 2022
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. void setup() {
  2.   // initialize digital pin 13 as an output.
  3.   pinMode(13, OUTPUT);
  4. }
  5.  
  6. // the loop function runs over and over again forever
  7. void loop() {
  8.   digitalWrite(13, HIGH);   // turn the LED on (HIGH is the voltage level)
  9.   delay(1000);              // wait for a second
  10.   digitalWrite(13, LOW);    // turn the LED off by making the voltage LOW
  11.   delay(1000);              // wait for a second
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement