blink 3 times on boot

pico-fc-test
alanbjohnston 3 years ago committed by GitHub
parent 6a5a47d7b5
commit 7fc01a0467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -227,6 +227,21 @@ void setup() {
}
*/
pinMode(LED_PIN, OUTPUT); // Set the pin as output
Serial.println("\nBlink three times");
digitalWrite(LED_PIN, LOW); // Turn on
delay (100); // Wait 0.1 sec
digitalWrite(LED_PIN, HIGH); // Turn off
delay(100); // Wait 0.1 sec
digitalWrite(LED_PIN, LOW); // Turn on
delay (100); // Wait 0.1 sec
digitalWrite(LED_PIN, HIGH); // Turn off
delay(100); // Wait 0.1 sec
digitalWrite(LED_PIN, LOW); // Turn on
delay (100); // Wait 0.1 sec
digitalWrite(LED_PIN, HIGH); // Turn off
}
void loop() {
@ -239,27 +254,12 @@ void loop() {
if (digitalRead(13) == HIGH) {
sleep_cam = true; // only sleep if GPIO13 is High on boot
Serial.println("GPIO13 is LOW, so don't sleep");
Serial.println("\nGPIO13 is LOW, so don't sleep");
}
bool timeout = false;
bool take_photo = false;
pinMode(LED_PIN, OUTPUT); // Set the pin as output
Serial.println("\nBlink three times");
digitalWrite(LED_PIN, LOW); // Turn on
delay (100); // Wait 0.1 sec
digitalWrite(LED_PIN, HIGH); // Turn off
delay(100); // Wait 0.1 sec
digitalWrite(LED_PIN, LOW); // Turn on
delay (100); // Wait 0.1 sec
digitalWrite(LED_PIN, HIGH); // Turn off
delay(100); // Wait 0.1 sec
digitalWrite(LED_PIN, LOW); // Turn on
delay (100); // Wait 0.1 sec
digitalWrite(LED_PIN, HIGH); // Turn off
/*
Serial.println("Checking for serial input before sleeping");

Loading…
Cancel
Save

Powered by TurnKey Linux.