Code:int pl = 12; //positionsleuchten links int pr = 11; //positionsleuchten rechts int ibl = 10; //input blinker links int ibr = 9; //input blinker rechts int il = 8; //input licht (Standlicht) int blinkerL; //speicher für zustand blinker links int blinkerR; //speicher für zustand blinker rechts int sl1; //speicher alter wert links int sr1; //speicher alter wert rechts int offsetL; //offset für links int offL; //offset laden links int offsetR; //offset für rechts int offR; //offset laden rechts int speicherL; //speicher links int speicherR; //speicher rechts void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode (ibl, INPUT); pinMode (ibr, INPUT); pinMode (il, INPUT); pinMode (pl, OUTPUT); pinMode (pr, OUTPUT); digitalWrite (pl, LOW); digitalWrite (pr, LOW); speicherL=0; speicherR=0; } void loop() { // put your main code here, to run repeatedly: digitalRead (il); if (il==0){ safe(); //einlesen der Werte für die Globalen Variablen PosiLinks(); //Posilampen Links an Blinker anpassen PosiRechts(); //Posilampen rechts an Blinker anpassen } else{ digitalWrite (pl, LOW); digitalWrite (pr, LOW); } }