Implement local web server on SoftAP for uploading PNG/MP3/WAV files directly to SD card
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user