Refactoring
nanosplit opened this issue · 0 comments
nanosplit commented
Entire refactor needs to be done to move all logic out of the main loop and into functions. Something along the lines of:
void loop() {
readInput();
updateDisplay();
dispsenseTickets();
}
void readInput() {
// do something to read the input
}
void updateDisplay() {
// do something to update the display with # inputted
}
void dispenseTickets() {
// do something to dispense the tickets based on the # inputted
}