start:esp32:max7219:horloge
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| start:esp32:max7219:horloge [2026/08/22 17:02] – [ESP32 Max7219 horloge] admin | start:esp32:max7219:horloge [2026/08/22 17:37] (Version actuelle) – [exemples Programmes Horloge] admin | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| {{ : | {{ : | ||
| + | ==== exemples Programmes Horloge ==== | ||
| <code c horloge002.ino> | <code c horloge002.ino> | ||
| // makerguides.com: | // makerguides.com: | ||
| Ligne 23: | Ligne 23: | ||
| - | const char* ssid = "castellab"; | + | const char* ssid = "---------"; |
| - | const char* password = "Castel37110$"; | + | const char* password = "-----------"; |
| // https:// | // https:// | ||
| + | //const char *timezone = " | ||
| const char *timezone = " | const char *timezone = " | ||
| Ligne 63: | Ligne 63: | ||
| void obtainTime() { | void obtainTime() { | ||
| // https:// | // https:// | ||
| - | char buff[24]; | + | char buff1[4]; |
| + | char buff2[4]; | ||
| struct tm t; | struct tm t; | ||
| getLocalTime(& | getLocalTime(& | ||
| - | sprintf(buff, "%02d:%02d", t.tm_hour, t.tm_min); | + | sprintf(buff1, " |
| - | Serial.println(" | + | sprintf(buff2," |
| - | Serial.println(buff); | + | Serial.println(" |
| - | Serial.print(t.tm_hour, t.tm_min); | + | Serial.println(buff1); |
| - | heure = t.tm_hour; | + | |
| - | minute = t.tm_min; | + | Serial.println(buff2); |
| + | heure = buff1; | ||
| + | minute = buff2; | ||
| Time = heure +":" | Time = heure +":" | ||
| - | Serial.println(Time); | ||
| Display. setTextAlignment(PA_CENTER); | Display. setTextAlignment(PA_CENTER); | ||
| Display.print(Time); | Display.print(Time); | ||
| - | + | } | |
| - | | + | |
| void setup() | void setup() | ||
| Ligne 96: | Ligne 97: | ||
| delay(1000); | delay(1000); | ||
| } | } | ||
| + | |||
| </ | </ | ||
/home/chanteri/www/fablab37110/data/attic/start/esp32/max7219/horloge.1787410967.txt.gz · Dernière modification : de admin
