Implement local web server on SoftAP for uploading PNG/MP3/WAV files directly to SD card

This commit is contained in:
drjones
2026-06-30 01:43:35 -07:00
parent 4fa200d649
commit 87c24338b5
3 changed files with 160 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
#include "SD_Card.h"
#include "Display_PNG.h"
#include "Audio_Player.h"
#include "Web_Server.h"
#include <algorithm>
#define BOOT_KEY_PIN 9
@@ -79,6 +80,9 @@ void setup() {
Display_Image_By_Index("/", 0);
currentState = STATE_IDLE;
}
// Start the SoftAP and local Web Server
initWebServer();
}
void playCurrentPair() {
@@ -265,6 +269,9 @@ void loop() {
lastButtonState = currentButtonReading;
// Handle incoming web server clients
handleWebServer();
// Update status RGB LED
updateLEDStatus();