Using finite state machines on Arduino [external source]

And a digital watch on Arduino using a 16x2 LCD