Components and supplies
Breadboard (generic)
Resistor 221 ohm
LED (generic)
Arduino UNO
Apps and platforms
Arduino IDE
Project description
Code
OO State Machine
c_cpp
Simple example of an object oriented state machine with two states.
OO State Machine
c_cpp
Simple example of an object oriented state machine with two states.
Downloadable files
Fritzing diagram of state machine
Fritzing diagram of state machine
Comments
Only logged in users can leave comments
JanHendrikStam
6 years ago
Nice and simple to understand. I have made a FSM using a switch statement. Indeed lengthy and cumbersome to maintain/expand.