Stap 6: Loop - deel A - seriële Monitor
////////////////////////////////LOOP//////////////////////////////////////
void loop {}
LEES SWITCHES
P1 = digitalRead(BtnP1);
tijd = millis();
AFDRUKKEN
Serial.Print("P1Score:");
Serial.Print(ScoreP1);
Serial.Print("");
Serial.Print("P1Speed:");
Serial.Print(SpeedP1);
Serial.Print("");
Serial.Print("CurrentLedP1:");
Serial.Print(CurrentLedP1);
Serial.Print("");
Serial.Print("P1Bttn:");
Serial.Print(P1);
Serial.Print("");
Serial.Print("BttnDelayP1:");
Serial.Print(P1ButtonDelay());
Serial.Print("");
Serial.Print("BttnDelayP1Actv:");
Serial.Print(P1Delay);
Serial.Print("");
Serial.Print("time:");
Serial.Print(time);
Serial.Print("");
Serial.Print("TimerActive:");
Serial.Print(TimerActiveP1);
Serial.Print("");
Serial.Print("TimeSaveP1:");
Serial.Print(TimeSaveP1);
Serial.Print("");
Serial.Print("IntervalP1:");
Serial.Print(IntervalP1);
Serial.println();
/////////////////////////////////////
NOTITIES
Dit drukt in principe alle belangrijke variabelen die throughtout het spel veranderen