sleep and light a led for 1 second before sleeping again

This commit is contained in:
Txus Ordorika 2019-03-06 23:25:22 +01:00
parent 0500c224a3
commit c05bef7316
1 changed files with 7 additions and 2 deletions

View File

@ -84,8 +84,9 @@ void setup_interrupts(void) {
}
void setup(void) {
Serial.begin(115200);
Serial.begin(9600);
setup_interrupts();
pinMode(LED_BUILTIN, OUTPUT);
}
void loop(void)
@ -101,7 +102,11 @@ void loop(void)
// Reset the number of sleep iterations.
sleepIterations = 0;
// Log the sensor data (waking the CC3000, etc. as needed)
logSensorReading();
/*logSensorReading();*/
Serial.println("gimme 5v");
digitalWrite(LED_BUILTIN, HIGH);
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW);
}
}