const int buttonPin = 0; // the number of the pushbutton pin
const int Rel1 = 1; // the number of the Relais1 pin
const int Rel2 = 2; // the number of the Relais2 pin
das ist aber seltsam:
Pins 0+1 werden üblicherweise für Serial (UART) verwendet - das würde ich also nicht verwenden....
besser du nimmst z.B. Pins 2,3 und 4.
Oder z.B. 10, 11 und 12 ...
außerdem brauchst du keine const int verwenden, int oder byte reicht.
Lesezeichen