//Testprogramm für die Verwendung von Taster Pullup/Pulldown
int pinTaster1 = 12;
int pinTaster2 = 11;
void setup() {
//Taster benötigen ein setup
//1. Taster Pulldown
pinMode(pinTaster1, INPUT);
pinMode(pinTaster2, INPUT_PULLUP);
//Taster pullup
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
int statusTaster1 = digitalRead(pinTaster1);
int statusTaster2 = digitalRead(pinTaster2);
Serial.print(statusTaster1);
Serial.print(" ");
Serial.println(statusTaster2); //ln wie /n
}