Hallo!
Habe bei meinem Arduino Code diesen Fehlercode:
exit status 1
Compilation error: expected ')' before ';' token
Der Sketch sieht so aus:
const int RELAIS = 13; //Relais Pin
#define BUTTON_PIN 5; //Pin für Knopf
void setup() {
pinMode(RELAIS, OUTPUT); //Relais Pins --> Ausgang
pinMode(BUTTON_PIN, INPUT); //Pin für Knopf --> Eingang
}
void loop() {
if (digitalRead(BUTTON_PIN) == HIGH){
digitalWrite(RELAIS, LOW);
}
if (digitalRead(BUTTON_PIN) == LOW){
digitalWrite(RELAIS, HIGH);
delay(500);
}
delay(1000);
}
Wo liegt da das Problem? Habe nichts gesehen wo eine ) vor dem ; fehlt.
(Rot markiert werden übrigens das "#define", das "pinMode(BUTTON_PIN, INPUT);" und beide if-Funktionen)