Skip to content

Commit 932ce92

Browse files
author
brentru
committed
remove sends to io from idle state, leavein colors and sound
1 parent 3119f2b commit 932ce92

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

examples/adafruitio_24_zapier/adafruitio_24_zapier.ino

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,7 @@ void setup()
138138

139139
void 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

151152
void 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

0 commit comments

Comments
 (0)