From 609e2a055b7273b7006521d6c3ab79157b4edd45 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Wed, 14 Dec 2022 14:01:55 -0500 Subject: [PATCH] move mode led pin --- .../esp32-cam-send-jpeg-serial.ino | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino b/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino index f4cc8c10..ca138b5d 100644 --- a/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino +++ b/cubesatsim/esp32-cam-send-jpeg-serial/esp32-cam-send-jpeg-serial.ino @@ -185,8 +185,9 @@ void setup() { 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 @@ -226,9 +227,7 @@ void setup() { Serial.println("ESP32-CAM Camera initialized v0.3"); - pinMode(LED_PIN, OUTPUT); // Set the pin as output - - // On the ESP32 you can also define another hardware serial interface using pins of your choice like this + // On the ESP32 you can also define another hardware serial interface using pins of your choice like this // Serial2.begin(115200,SERIAL_8N1,14,15); // Serial.println("Initializing CRC");