Share this example!

Share this example with your friends on your favorite profile:

You can easily embed this example to your blog or website by copying the following code:

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/example/FiniteStateMachine/LEDStateMachine" frameborder="0"></iframe>


You can also embed the Serial Monitor section! Just use this HTML code.

<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>



  • 2016-04-15 tmead

    It also fails to compile in the desktop IDE, with an error message of 'xx function name xx' was not declared in this scope.

    It compiles happily in version 1.0.2 and earlier, as I have code that successfully uses this library. I've just had to re-install the older IDE to edit and recompile the code.

    It seems that something in the latest compiler iteration is preventing this working, and my code knowledge is far exceeded trying to sort this out !

  • 2015-11-20 codebender

    This example was tested on 2016-06-11 and it failed to compile on common Arduino boards.