Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. int switchPin = 8;
  2.  
  3.  
  4. void setup() {
  5.   // put your setup code here, to run once:
  6.   pinMode(switchPin,INPUT_PULLUP);
  7.   Serial.begin(9600);
  8. }
  9.  
  10. void loop() {
  11.   if (digitalRead(switchPin) == LOW) {
  12.     Serial.println("Penis drin");
  13.   } else
  14.   {
  15.     Serial.println("Penis raus");
  16.   }
  17.   delay(250);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement