Advertisement
gabbyshimoni

blink7

Mar 14th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. void setup() {
  2.   pinMode(7, OUTPUT);
  3. }
  4.  
  5. void loop() {
  6.   digitalWrite(7, HIGH);   // turn the LED on (HIGH is the voltage level)
  7.   delay(1000);                       // wait for a second
  8.   digitalWrite(7, LOW);    // turn the LED off by making the voltage LOW
  9.   delay(1000);                       // wait for a second
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement