Skip to content

Instantly share code, notes, and snippets.

@michaelsarduino
Created December 10, 2015 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelsarduino/94ecfba55f22b371d8c2 to your computer and use it in GitHub Desktop.
Save michaelsarduino/94ecfba55f22b371d8c2 to your computer and use it in GitHub Desktop.
void setup() {
pinMode(3, INPUT);
Serial.begin(9600);
}
void loop() {
if(digitalRead(3) == HIGH)
{
Serial.println("Feuer!");
}
else {
Serial.println("Kein Feuer...");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment