Replacing delay with millis

I wrote a demo sketch that uses millis() to control several things. You may find it useful.

http://forum.arduino.cc/index.php?topic=223286.0

...R