File tree Expand file tree Collapse file tree
examples/adafruitio_24_zapier Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -138,6 +138,7 @@ void setup()
138138
139139void updateTime ()
140140{
141+ // grab the current time from millis()
141142 currentTime = millis () / 1000 ;
142143 seconds = currentTime - prevTime;
143144 // increase min. timer
@@ -150,7 +151,7 @@ void updateTime()
150151
151152void updatePixels (uint8_t red, uint8_t green, uint8_t blue)
152153{
153- // Power on the prop maker wing
154+ // updates pixels on the prop- maker featherwing
154155 digitalWrite (POWER_PIN, HIGH);
155156 analogWrite (RED_LED, 0 );
156157 analogWrite (GREEN_LED, 0 );
@@ -229,15 +230,8 @@ void loop()
229230 minutes = 0 ;
230231 break ;
231232 case 3 :
232- Serial.println (" Switching to Task 3" );
233233 updatePixels (0 , 0 , 50 );
234234 tone (PIEZO_PIN, 950 , 300 );
235- Serial.print (" Sending to Adafruit IO -> " );
236- // prv task
237- // save previous task's minutes to a feed
238- cubeminutes -> save (minutes);
239- // reset the timer
240- minutes = 0 ;
241235 break ;
242236 }
243237
You can’t perform that action at this time.
0 commit comments