Skip to content

The simplest FSM implementation of deviceShifu #542

@kris21he

Description

@kris21he

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.

  1. The LED can turn ON if and only if it is in the OFF state
  2. The LED can turn OFF if and only if it is in the ON state

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions