Wenn-Programm
Aus RMG-Wiki
void setup () { pinMode(13, OUTPUT); pinMode(7,INPUT); } void loop() { if(digitalRead(7)==HIGH) { digitalWrite(13, HIGH); } else { digitalWrite(13, LOW); } }