es müsste auch mit dem Befehl Modulo (%) gehen
Beispiel aus: Examples -> Button State Change Detection
// turns on the LED every four button pushes by
// checking the modulo of the button push counter.
// the modulo function gives you the remainder of
// the division of two numbers:
if (buttonPushCounter % 4 == 0) {
digitalWrite(ledPin, HIGH);
} else {
digitalWrite(ledPin, LOW);
}
Gruß
Harald