removed not used code anymore from the controller firmware, added ESP-NOW functions and settings to the controller to control the display

This commit is contained in:
2025-02-24 06:26:45 +01:00
parent 9e708d461a
commit c2bffd7a26
5 changed files with 131 additions and 216 deletions

View File

@@ -8,8 +8,6 @@ void pollInput (){
buttonRESET.poll();
switchRUMBLE.poll();
switchPIT.poll();
buttonREDTEAM.poll();
buttonBLUETEAM.poll();
if (buttonSTART.pushed()) {
buttonSTARTvar = true;
@@ -23,16 +21,16 @@ void pollInput (){
if (buttonRESET.pushed()) {
buttonRESETvar = true;
}
if (buttonREDTEAM.pushed()) {
buttonREDTEAMvar = true;
if (ARENA_READY && !REDTEAM_READY) {
BLINK_COUNTER_REDTEAM = 5;
}
}
if (buttonBLUETEAM.pushed()) {
buttonBLUETEAMvar = true;
if (ARENA_READY && !BLUETEAM_READY) {
BLINK_COUNTER_BLUETEAM = 5;
}
}
// if (buttonREDTEAM.pushed()) {
// buttonREDTEAMvar = true;
// if (ARENA_READY && !REDTEAM_READY) {
// BLINK_COUNTER_REDTEAM = 5;
// }
// }
// if (buttonBLUETEAM.pushed()) {
// buttonBLUETEAMvar = true;
// if (ARENA_READY && !BLUETEAM_READY) {
// BLINK_COUNTER_BLUETEAM = 5;
// }
// }
}