From 7c2b249621df7dee9606dbb375b74b703847470c Mon Sep 17 00:00:00 2001 From: Tom Igoe Date: Tue, 9 Feb 2010 03:51:55 +0000 Subject: [PATCH] Change to reduce call to millis() by Paul Stoffregen --- .../Digital/BlinkWithoutDelay/BlinkWithoutDelay.pde | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/build/shared/examples/Digital/BlinkWithoutDelay/BlinkWithoutDelay.pde b/build/shared/examples/Digital/BlinkWithoutDelay/BlinkWithoutDelay.pde index 6080fd505..3031e200a 100644 --- a/build/shared/examples/Digital/BlinkWithoutDelay/BlinkWithoutDelay.pde +++ b/build/shared/examples/Digital/BlinkWithoutDelay/BlinkWithoutDelay.pde @@ -39,9 +39,10 @@ void loop() { // here is where you'd put code that needs to be running all the time. - // check to see if it's time to blink the LED; that is, is the difference - // between the current time and last time we blinked the LED bigger than - // the interval at which we want to blink the LED. + // check to see if it's time to blink the LED; that is, if the + // difference between the current time and last time you blinked + // the LED is bigger than the interval at which you want to + // blink the LED. unsigned long currentMillis = millis(); if(currentMillis - previousMillis > interval) {