diff --git a/LibreMetric.ino b/LibreMetric.ino index 0fefa4e..1ca21f0 100644 --- a/LibreMetric.ino +++ b/LibreMetric.ino @@ -72,29 +72,29 @@ void configModeCallback (WiFiManager *myWiFiManager) { // AP config mode } void setup() { - Serial.begin(115200); // initialize serial communications + // Initialisation + Serial.begin(115200); DEBUG_PRINT(F("\n\r")); - matrix.fillScreen(LOW); //clr screen - + matrix.fillScreen(LOW); // clear screen initOTA(); SPIFFS.begin(); - for (int i=0; i matrix.width()) { display_message_long(message); @@ -189,9 +194,12 @@ void display_message(String message){ matrix.drawChar(x + (i * width), y, message[i], HIGH, LOW, 1); // HIGH LOW means foreground ON, background OFF, reverse these to invert the display! } matrix.write(); // Send bitmap to display - delay(4000); + delay(20*wait); } } + +// Function for displaying only long messages (longer than LED matrix length) +// This function is called only by the display_message function void display_message_long(String message){ for ( int i = 0 ; i < width * message.length() + matrix.width() - spacer; i++ ) { matrix.fillScreen(LOW); diff --git a/config.h b/config.h index 74c1035..a9e5cdf 100644 --- a/config.h +++ b/config.h @@ -1,5 +1,5 @@ // Enable console output via telnet -// #define DEBUG_TELNET +#define DEBUG_TELNET // Enable wifimanager debug diff --git a/data/index.html b/data/index.html new file mode 100644 index 0000000..1b9c618 --- /dev/null +++ b/data/index.html @@ -0,0 +1,118 @@ + + + + + + Envoi de messages - LibreMetric + + + + + + + + + +
+




+

LibreMetric v0.1b

+ +
+
+ +
+
+ + +
+
+ +
+
+ + +
+
+ +
+
+ +
+
+ +
+
+ + +