WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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