initial commit
This commit is contained in:
22
ROFLS_Arena_Remote/Input_Handler.ino
Normal file
22
ROFLS_Arena_Remote/Input_Handler.ino
Normal file
@@ -0,0 +1,22 @@
|
||||
// handle all the inputs, set vars, etc.
|
||||
|
||||
void pollInput (){
|
||||
// poll all the switch/button inputs
|
||||
buttonSTART.poll();
|
||||
buttonPAUSE.poll();
|
||||
buttonPIT.poll();
|
||||
buttonRESET.poll();
|
||||
|
||||
if (buttonSTART.pushed()) {
|
||||
buttonSTARTvar = true;
|
||||
}
|
||||
if (buttonPAUSE.pushed()) {
|
||||
buttonPAUSEvar = true;
|
||||
}
|
||||
if (buttonPIT.pushed()) {
|
||||
buttonPITvar = true;
|
||||
}
|
||||
if (buttonRESET.pushed()) {
|
||||
buttonRESETvar = true;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user