Hey,
ich habe ein Problem das ich irgendwie nicht lösen kann: Ich habe eine Lichtsteuerung geschrieben welche im einzelnen auch funktioniert, wenn ich aber alles zusammen setze wird mir gesagt das der Code nicht für den Arduino uno kompeliert werden konnte.
komisch ist aber das wenn ich den unteren Teil (ab der switch-case Anweisung) auskommentiere funktioniert wieder alles Wunderbar.
"I have a problem that I can't solve somehow: I wrote a light control which also works in detail, but when I put everything together I am told that the code could not be compiled for the Arduino uno.
But it is strange that when I comment out the lower part (from the switch-case statement) everything works fine again.
the arduino UNO does not have all those pins (but it should still compile if you close the comments to keep the right {})...(Die Arduino UNO hat nicht alle diese Pins aber es sollte immer noch kompiliert werden, wenn Sie die Kommentare schließen, um {} zu behalten )
int defpos19 = 19;
int defpos20 = 20;
int defpos21 = 21;
int defpos43 = 43;
int defpos44 = 44;
int defpos45 = 45;
int pos0 = 22;
int pos1 = 23;
int pos2 = 24;
int pos3 = 25;
int pos4 = 26;
int pos5 = 27;
int pos6 = 28;
int pos7 = 29;
int pos8 = 30; //Werksatt seite
int pos9 = 31;
int pos10 = 32;
int pos11 = 33;
int pos12 = 34;
int pos13 = 35;
int pos14 = 36;
int pos15 = 37;
int pos16 = 38;
int pos17 = 39; //probleme
int pos18 = 40;
int pos19 = 41;
int pos20 = 42; //Fenster seite //OUTPUT