From f24285ad5efee709209c392f6f12c5c553980c0d Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 2 Jan 2023 21:47:04 +0100 Subject: [PATCH] Update display interface --- src/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 64cfeb3..88fa871 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -85,6 +85,10 @@ void onSelectFile(AsyncWebServerRequest *request) { selectedFile = request->getParam("fileName", true)->value(); Serial.print(selectedFile); + display.clearDisplay(); + display.setCursor(0, 0); + display.println("Selectionne : "+ selectedFile); + display.display(); } Serial.println(); onAvailableFiles(request); @@ -183,7 +187,9 @@ void setup() server.begin(); Serial.println("Server ready!"); - display.println("Serveur pret !"); + display.clearDisplay(); + display.setCursor(0, 0); + display.println("Pret !"); display.display(); // Audio