Device Control

StateMachine

"A simple state machine implementation."

A state machine is implemented by defining state logic as a function in your sketch. Transitions are implemented as functions returning a boolean value and a next state number. Requires LinkedList library https://github.com/ivanseidel/LinkedList.

Go to repository

This library is compatible with all architectures so you should be able to use it on all the Arduino boards.