38
38
// I2C
39
39
Adafruit_LIS3DH lis = Adafruit_LIS3DH();
40
40
41
- // Set up the 'orientation ' feed
42
- AdafruitIO_Feed *orientation = io.feed(" orientation " );
41
+ // Set up the 'cubeTask ' feed
42
+ AdafruitIO_Feed *cubetask = io.feed(" cubetask " );
43
43
44
44
// Set up the 'minutes' feed
45
45
AdafruitIO_Feed *cubeminutes = io.feed(" cubeminutes" );
@@ -66,7 +66,6 @@ unsigned long currentTime;
66
66
unsigned long prevTime;
67
67
int seconds = 0 ;
68
68
int minutes = 0 ;
69
- int prevMinutes = 0 ;
70
69
71
70
void setup ()
72
71
{
@@ -157,7 +156,7 @@ void loop()
157
156
tone (PIEZO_PIN, 650 , 300 );
158
157
Serial.print (" Sending to Adafruit IO -> " );
159
158
Serial.println (taskOne);
160
- orientation ->save (taskOne);
159
+ cubetask ->save (taskOne);
161
160
// save minutes to a feed
162
161
cubeminutes->save (minutes);
163
162
// reset the timer
@@ -168,7 +167,7 @@ void loop()
168
167
tone (PIEZO_PIN, 850 , 300 );
169
168
Serial.print (" Sending to Adafruit IO -> " );
170
169
Serial.println (taskTwo);
171
- orientation ->save (taskTwo);
170
+ cubetask ->save (taskTwo);
172
171
// save minutes to a feed
173
172
cubeminutes->save (minutes);
174
173
// reset the timer
0 commit comments