Created
December 22, 2015 18:16
-
-
Save michaelsarduino/b0ccf5870537944917f9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
pinMode(2, INPUT); | |
Serial.begin(9600); | |
} | |
void loop() { | |
if(digitalRead(2) == HIGH) | |
{ | |
Serial.println("Laerm!"); | |
} | |
else | |
{ | |
Serial.println("Ruhe..."); | |
} | |
delay(10); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment