Code Layout
Instead of a giant switch loop we took advantage of function pointers. We would always track which state we were in, which corresponded to an index of an array of function pointers. Each function would represent the code that would be run and the events that would be checked for in each loop call by the Arduino.
Download Link
execute.zip | |
File Size: | 33 kb |
File Type: | zip |