Arduino multitasking guide
Bill Earl’s new tutorial on Adafruit is about multitasking with Arduino where he explains practically how to program an Arduino board to perform multiple independent tasks without the processor being tied up to any kind of delay. His approach define each task as an independent state machine which can execute without affecting or being affected by the others.