From 3e936313d59871a5dae212cbf8663221380c5d98 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 1 Jan 2023 18:32:00 +0100 Subject: [PATCH] Use builtin LED as ready signal --- src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 8e1b1dc..dcc48bb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -11,6 +11,8 @@ #define I2S_BCLK 27 #define I2S_LRC 26 +#define LED 2 + String selectedFile = ""; AsyncWebServer server(80); @@ -63,6 +65,8 @@ void setup() { // Setup serial Serial.begin(115200); + pinMode(LED, OUTPUT); + digitalWrite(LED, LOW); // Setup SPIFFS if (!SPIFFS.begin()) @@ -118,6 +122,8 @@ void setup() audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT); audio.setVolume(21); // Max 21 + + digitalWrite(LED, HIGH); } void loop()