diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..72e2c2b --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2025 Clément Saillant + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index c0a8210..a41b951 100644 --- a/README.md +++ b/README.md @@ -333,10 +333,17 @@ Pour obtenir de l'aide : ## Crédit -Projet original adapté pour PlatformIO. Code source basé sur les exemples et tutoriels de la communauté ESP32/Arduino. +Projet développé et adapté pour PlatformIO par **Clément Saillant (electron-rare)** : +- GitHub : https://github.com/electron-rare + +Code source basé sur des exemples et tutoriels de la communauté ESP32/Arduino. Bibliothèques utilisées : - PxMatrix par 2dom (Dominic Buchstaller) - RTClib par Adafruit - Adafruit GFX Library - Adafruit BusIO + +## Licence + +Ce projet est distribué sous licence **MIT**. Voir le fichier `LICENSE` pour le texte complet. diff --git a/examples/fullscreen_countdown_web.cpp b/examples/fullscreen_countdown_web.cpp index 1afcf60..fb24c54 100644 --- a/examples/fullscreen_countdown_web.cpp +++ b/examples/fullscreen_countdown_web.cpp @@ -9,7 +9,7 @@ * * L'interface web est accessible à l'adresse http://ip_de_l'esp32/ * - * Auteur: GitHub Copilot + * Auteur: Clément Saillant (electron-rare) * Date: Août 2025 */ @@ -48,6 +48,13 @@ #include "freertos/queue.h" #include "freertos/semphr.h" +// Version firmware (uniformisé avec main) +static const char* FIRMWARE_VERSION = "1.0.0"; // garder synchro avec src/main.cpp + +// === Personnalisation Auteur / GitHub === +static const char* AUTHOR_NAME = "Clément Saillant (electron-rare)"; +static const char* GITHUB_URL = "https://github.com/electron-rare"; + // Pins pour la matrice LED #define P_LAT 5 #define P_A 19 @@ -383,6 +390,7 @@ int displayFormat = 0; const char MAIN_page[] PROGMEM = R"rawliteral( + ESP32 P10 Countdown " +"

À propos

" +"

Projet : ESP32 P10 RGB 32x16 Digital Clock (PlatformIO)

" +"

Auteur : Clément Saillant (electron-rare)

" +"

Crédits

" +"

Licence

Ce projet est distribué sous licence MIT. Voir le fichier LICENSE dans le dépôt.

" +"
MIT License\n\nCopyright (c) 2025 Clément Saillant\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\n... (version abrégée, texte complet dans le dépôt) ...\n
" +"

← Retour

" +""; diff --git a/src/main.cpp b/src/main.cpp index d35434f..720de49 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -49,6 +49,9 @@ static inline bool isFastBoot(){ #include #include +// Version firmware globale +static const char* FIRMWARE_VERSION = "1.0.0"; // Modifier ici lors d'une nouvelle release + // Prototypes des tâches FreeRTOS void DisplayTask(void *pvParameters); void WebServerTask(void *pvParameters); @@ -57,6 +60,7 @@ void WiFiTask(void *pvParameters); // Prototypes des gestionnaires web void handleRoot(); void handleSettings(); +void handleAbout(); void handleCaptivePortal(); void handleNotFound(); @@ -481,6 +485,11 @@ void handleRoot() { server.send(200, "text/html", MAIN_page); } +// Page À propos +void handleAbout(){ + server.send(200, "text/html", ABOUT_page); +} + // Gestionnaire des paramètres void handleSettings() { String incoming_Settings = server.arg("key"); @@ -759,6 +768,7 @@ void prepare_and_start_The_Server() { // Routes principales server.on("/", handleRoot); server.on("/settings", handleSettings); + server.on("/about", handleAbout); // Routes communes pour le portail captif server.on("/generate_204", handleRoot); // Android @@ -795,7 +805,10 @@ void setup() { delay(isFastBoot() ? 100 : 1000); Serial.begin(115200); Serial.println("\n=== ESP32 P10 RGB Digital Clock ==="); - Serial.println("Version: PlatformIO Compatible with Cascade Support"); + Serial.print("Version: PlatformIO Compatible with Cascade Support - v"); + Serial.println(FIRMWARE_VERSION); + Serial.println("Author: Clément Saillant (electron-rare) - https://github.com/electron-rare"); + Serial.println("License: MIT"); // Affichage de la configuration des panneaux Serial.println("\n--- Configuration Panneaux ---");