State machine programming for Arduino, switch case, table of structs, and table of function pointers
Channel: Heavy Bare Metal
Date: 11/07/2020

This video shows different ways to implement a simple traffic light example on an Arduino, using the classic switch case, a table of function pointers, and a table of structs. We will also see how to store the table of structs in FLASH (program memory) rather than RAM.

Github code:
https://github.com/HeavyBareMetal/statemachinesexample

Please like if you found this video helpful, comment below if you have any questions or suggestions on how to improve the code. Happy coding!