Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 1 KB

README.md

File metadata and controls

13 lines (9 loc) · 1 KB

Finite State Machines

Playing around with FSMs on Arduino. Inspired by Marshall's blog post and related GitHub repository.

##Current Sketches

  • blink_fsm - 2 states (on/off) for flashing LED
  • debounce - 4 states for debouncing a button or a switch hooked to D0 and using internal pull-up resistor of ATmega328. Not the ideal debounce code, but a next level state machine example.
  • menu - General serial port menu system that uses the arrow keys to navigate. Requires a 'real' serial terminal emulator, the Arduino IDE one won't work. Use something like PuTTY or screen.

Basic idea in a graph

Partial State Diagram

  • TBD...