Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. void setup() {
  2.   pinMode(LED_BUILTIN, OUTPUT);
  3.   pinMode(12, INPUT_PULLUP);
  4. }
  5.  
  6. void loop() {
  7.   if(digitalRead(12)==LOW) {
  8.     digitalWrite(LED_BUILTIN, HIGH);
  9.     delay(50);
  10.     digitalWrite(LED_BUILTIN, LOW);
  11.     delay(50);
  12.   }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement