31 lines
851 B
C++
31 lines
851 B
C++
// handle all the inputs, set vars, etc.
|
|
|
|
void pollInput (){
|
|
// poll all the switch/button inputs
|
|
buttonSTART.poll();
|
|
buttonPAUSE.poll();
|
|
buttonPIT.poll();
|
|
buttonRESET.poll();
|
|
switchRUMBLE.poll();
|
|
switchPIT.poll();
|
|
|
|
buttonSTARTvar = buttonSTART.singleClick();
|
|
buttonSTARTforced = buttonSTART.longPress();
|
|
buttonPAUSEvar = buttonPAUSE.singleClick();
|
|
buttonPITvar = buttonPIT.singleClick();
|
|
buttonPIThold = buttonPIT.on();
|
|
buttonRESETvar = buttonRESET.longPress();
|
|
|
|
// 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;
|
|
// }
|
|
// }
|
|
} |