initial commit

This commit is contained in:
2025-02-22 20:45:28 +01:00
commit d0d8c2ac7a
10 changed files with 804 additions and 0 deletions

View 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;
}
}