Open
Description
Is your feature request related to a problem? Please describe.
I want to use FSM to represent the traffic light change logic, take the deviceShifu mimic the behaviour of the traffic light
Describe the solution you'd like
- The traffic light has RED, YELLOW, GREEN states
- The light can change from RED to GREEN
- The light can change from GREEN to YELLOW
- The light can change from YELLOW to RED
- The light can not change any other state except above rules
Additional context
use https://github.com/looplab/fsm to implement
refer to #542 if that was implemented