Finite State Machine(FSM) could be a useful feature to logically automate deviceshifu's state and behavior.
Here we request to add example of applying FSM to deviceshifu. we can create a folder called "fsm/examples" under /pkg.
To create the simplest FSM as following:
Please use https://github.com/looplab/fsm to define a FSM that can control a LED deviceShifu's ON and OFF state changes.
- The LED can turn ON if and only if it is in the OFF state
- The LED can turn OFF if and only if it is in the ON state