This http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay example uses millis() to see how much time has gone by (interval). Take a good look and try to merge it into your app.
This http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay example uses millis() to see how much time has gone by (interval). Take a good look and try to merge it into your app.