// // ######################### // # HORLOGE DU MOUFLON # // ######################### // # Guy Magli 10.12.2019 # // # 08.02.2019 # // ######################### // # Conception, cablages # // # mises a jour, # // # contact... # // # www.magli.fr # // ######################### // // : -------------- : // La personnalisation des affichages de ce code source concerne : Alain et Agnes : // : -------------- : // // Afin d'eviter les problemes d'affichage et d'impression les signes diacritiques // ont ete retires des commentaires et des chaines de caracteres. // // ! ======================== ! // ! Librairies et parametres ! // ! ======================== ! // #include // Pour la communication avec un peripherique. #include // Pour utilisation de l'horloge RTC. #include "Seeed_BMP280.h" // Pour la mesure de la temperature #include // Pour l'ecran graphique #include // Pour l'ecran graphique. #include // Pour la gestion des chaines de caracteres. #include // Pour le clavier. #include // Pour enregistrer sur l'EEPROM la valeur de la brillance #include // Pour l'anneau de leds. #ifdef __AVR__ #include // Required for 16 MHz Adafruit Trinket #endif // // ! ================================================= ! // ! VARIABLES GLOBALES, CONSTANTES ET INITIALISATIONS ! // ! ================================================= ! // // Pour le clavier // int iJoursClavier = 0; // Les jours, int iMoisClavier = 0; // les mois, int iAnneesClavier = 0; // les annees, int iHeuresClavier = 0; // les heures int iMinutesClavier = 0; // et les minutes saisis au clavier. char cTouche = ' '; // La touche frappee au clavier. int iNombreTouche = 0; // Le nombre de touches frappees au clavier. String cSaisieClavier = ""; // La ligne complete saisie au clavier. bool bSaisieCorrecte = false; // La validation (ou non) de la saisie au clavier. const byte byLignes = 4; // 4 lignes du clavier. const byte byColonnes = 4; // 4 colonnes du clavier. char cTouches[byLignes][byColonnes] = { {'1','2','3','A'}, {'4','5','6','B'}, {'7','8','9','C'}, {'*','0','#','D'} }; // // Branchement du clavier quand on le regarde le clavier de face. // // 1 2 3 A // 4 5 6 B // 7 8 9 C // * 0 # D // !!!! // !!!! // lignes ---- // 3332 // 4208 // ---- colonnes // 2222 // 6420 // !!!! // !!!! // byte byLignesConnecteurs[byLignes] = { 23, 25, 27, 29 }; // Lignes du clavier. byte byColonnesConnecteurs[byColonnes] = { 31, 33, 35, 37 }; // Colonnes du clavier. Keypad keypad = Keypad(makeKeymap(cTouches), byLignesConnecteurs, byColonnesConnecteurs, byLignes, byColonnes); // // Pour l'horloge. // RTC_DS1307 RTC; // Constante pour le module horloge. // // Pour la meteo // BMP280 bmp280; float fTemperatureC = 0; // Temperature mesuree en degres C. int iTemperatureD = 0; // Chiffre des dizaines int iTemperatureU = 0; // et des unites de la temperature. // // Pour la anneau de Leds // #define LED_PIN 47 // Connecteur #define LED_COUNT 12 // Nombre de leds0 Adafruit_NeoPixel anneau(LED_COUNT, LED_PIN, NEO_GRB + NEO_KHZ800); int iBrillance = 0; // Brillance des leds. // // Pour les calculs sur les dates et les heures // DateTime now; int iHeures = 0; // Nombre d'heures. int iHeuresD = 0; // Dizaines. int iHeuresU = 0; // Unites. int iMinutes = 0; // Idem pour les minutes. int iMinutesD = 0; // Dizaines. int iMinutesU = 0; // Unites. int iJours = 0; // La date. int iJoursD = 0; // Dizaines. int iJoursU = 0; // Minutes. String cJours = ""; // Jours en lettres. int iMois = 0; // Le mois. int iMoisD = 0; // Dizaines. int iMoisU = 0; // Unites. String cMois = ""; // Mois en lettres. unsigned long iAnnees = 0; int iJoursDeLaSemaine = 0; // Jour de la semaine en nombre (dimanche = 0). String cJoursDeLaSemaine = ""; // Jour en lettres. String cChaineDate = ""; // La date sous la forme JJMMAAA. String cCHaineHeure = ""; // L'heure sous la forme HHMM. // // Pour l'EEPROM // int iOctet1 = 0; // Octet lu ou ecrit pour enregistrer la brillance // // Pour le detecteur // int iDetecteur = 45; // Connecteur du detecteur de mouvement. // // Divers. // int t; // Pour les boucles diverses. // // Pour l'ecran. // #define LCD_CS A3 #define LCD_CD A2 #define LCD_WR A1 #define LCD_RD A0 #define LCD_RESET A4 #define BLACK 0x0000 #define BLUE 0x001F #define RED 0xF800 #define GREEN 0x07E0 #define CYAN 0x07FF #define MAGENTA 0xF81F #define YELLOW 0xFFE0 #define WHITE 0xFFFF #define FOND BLACK #define HEURE GREEN #define DATE YELLOW #define MESSAGE WHITE #define FONDLED BLACK Elegoo_TFTLCD tft(LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET); int xPos, yPos; // Coordonnees d'affichage // // Pour l'ordre d'Affichage quand il y a deux prenoms. // int iOrdre = 0; // // ! ===== ! // ! SETUP ! // ! ===== ! // void setup() { Serial.begin(9600); Serial.println("HORLOGE DU MOUFLON"); Serial.println(""); // // Lit les valeiurs enregistrees sur l'EEPROM // Serial.println("Initialisations :"); Serial.println("- l'EEPROM"); iOctet1 = EEPROM.read(1); // Lit la valeur de la brillance. iBrillance = iOctet1; Serial.print("("); Serial.print(iOctet1); Serial.println(")"); // // Pour les led // Serial.println("- les leds"); anneau.begin(); anneau.clear(); anneau.setBrightness(iBrillance); anneauColore(); // Illumination de la mise sous tension. // // Pour la detection du mouvement. // pinMode(iDetecteur, INPUT); // C'est un connecteur d'entree. int iDetecteur = 47; // // Pour l'horloge. // Serial.println("- l'horloge"); RTC.begin(); // // Pour la temperature // Serial.println("- la temperature"); bmp280.init(); litLaMeteo(); // // // Pour le clavier // Serial.println("- le clavier"); Serial.println(""); // // : ------------------------------ : // : Affichage de la page d'accueil : // : ------------------------------ : // Serial.println("Affichages :"); Serial.println("- du titre"); tft.reset(); uint16_t identifier = tft.readID(); identifier = 0x9341; tft.begin(identifier); tft.fillScreen(FOND); tft.setRotation(3); // // Titre. // xPos = 30; yPos = 80; HTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); RTaille1(xPos, yPos, MESSAGE); LTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); GTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); xPos = 30; yPos = 110; PTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); RTaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); ATaille1(xPos, yPos, MESSAGE); LTaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); delay(2500); // // Prenoms et noms // Serial.println("- du prenom et du nom"); xPos = 30; yPos = 170; ATaille1(xPos, yPos, MESSAGE); LTaille1(xPos, yPos, MESSAGE); ATaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); // Espace xPos += 20; ETaille1(xPos, yPos, MESSAGE); TTaille1(xPos, yPos, MESSAGE); // Espace xPos += 20; ATaille1(xPos, yPos, MESSAGE); GTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); xPos = 30; yPos = 200; BTaille1(xPos, yPos, MESSAGE); ATaille1(xPos, yPos, MESSAGE); TTaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); delay(5000); parametres(); delay(5000); tft.fillScreen(BLACK); anneauEteint(); Serial.println("Fin du setup."); Serial.println(" "); } // // ! ==== ! // ! Loop ! // ! ==== ! // void loop() { // // : ------------------- : // : Reglages au clavier : // : ------------------- : // // Si on a presse la touche *. cTouche = keypad.getKey(); if (cTouche != NO_KEY) { int iBrillanceAncienne = iBrillance; Serial.println("Une touche du clavier a ete pressee."); bSaisieCorrecte = false; if (cTouche == '*') // Reglages demandes { Serial.println("La touche * a ete pressee."); Serial.println("On saisit les parametres."); Serial.println(" "); // // La brillance // bSaisieCorrecte = false; while (bSaisieCorrecte == false) { Serial.println("La brillance des leds."); iNombreTouche = 0; cTouche = ' '; cSaisieClavier = ""; tft.fillScreen(BLACK); tft.setRotation(3); unsigned long start = micros(); tft.setCursor(0, 20); tft.setTextSize(3); tft.setTextColor(GREEN); tft.println("BRILLANCE"); tft.setTextColor(YELLOW); tft.println("ENTREZ LA VALEUR AVEC"); tft.println("TROIS CHIFFRES"); tft.println("000 A 255"); tft.println("EXEMPLE MOYEN"); tft.println("050"); tft.setTextColor(RED); iNombreTouche = 0; cTouche = ' '; iBrillance = 0; while (iNombreTouche < 3) { cTouche = keypad.getKey(); if (cTouche != NO_KEY) { if ((cTouche >= '0') && (cTouche <= '9')) { iNombreTouche++; tft.print(cTouche); switch (iNombreTouche) { case 1: iBrillance = (((int)cTouche - 48) * 100); break; case 2: iBrillance = iBrillance + (((int)cTouche - 48) * 10); break; case 3: iBrillance = iBrillance + (((int)cTouche - 48) * 1); break; } cSaisieClavier = cSaisieClavier + cTouche; cTouche = ' '; delay(250); } } } tft.fillScreen(BLACK); tft.setRotation(3); tft.setCursor(0, 20); tft.setTextSize(3); tft.setTextColor(GREEN); tft.println("BRILLANCE"); tft.setTextColor(YELLOW); tft.println("VOUS AVEZ SAISI "); tft.setTextColor(RED); tft.println(cSaisieClavier); tft.setTextColor(YELLOW); Serial.print("- La brillance a ete saisie ("); Serial.print(cSaisieClavier); Serial.println(")"); anneau.setBrightness(iBrillance); anneauColore(); tft.println("EST-CE CORRECT ?"); tft.println("1 OUI / 0 NON"); iNombreTouche = 0; cTouche = ' '; tft.setTextColor(RED); while (iNombreTouche < 1) { cTouche = keypad.getKey(); if (cTouche != NO_KEY) { if ((cTouche >= '0') && (cTouche <= '1')) { iNombreTouche++; if (cTouche == '1') { bSaisieCorrecte = true; tft.print(cTouche); delay(250); Serial.println("- La brillance a ete validee."); // Enregistrement de la brillance sur EEPROM EEPROM.write(1, iBrillance); Serial.println("- La brillance a ete enregistree."); } else // On recommence tout { tft.print(cTouche); delay(250); Serial.println("(La brillance a ete refusee.)"); iBrillance = iBrillanceAncienne; anneau.setBrightness(iBrillance); anneau.show(); delay(2000); } } } } anneauEteint(); } // // La date // Serial.println("La date."); bSaisieCorrecte = false; while (bSaisieCorrecte == false) { iNombreTouche = 0; cTouche = ' '; cSaisieClavier = ""; tft.fillScreen(BLACK); tft.setRotation(3); unsigned long start = micros(); tft.setCursor(0, 20); tft.setTextSize(3); tft.setTextColor(GREEN); tft.println("DATE"); tft.setTextColor(YELLOW); tft.println("ENTREZ LA VALEUR AVEC"); tft.println("SIX CHIFFRES"); tft.println("JJMMAA"); tft.println("EXEMPLES"); tft.println("140120 OU 010425"); tft.setTextColor(RED); iNombreTouche = 0; cTouche = ' '; iJours = 0; iMois = 0; iAnnees = 0; while (iNombreTouche < 6) { cTouche = keypad.getKey(); if (cTouche != NO_KEY) { if ((cTouche >= '0') && (cTouche <= '9')) { iNombreTouche++; tft.print(cTouche); switch (iNombreTouche) { case 1: iJours = (((int)cTouche - 48) * 10); break; case 2: iJours = iJours + (((int)cTouche - 48) * 1); break; case 3: iMois = (((int)cTouche - 48) * 10); break; case 4: iMois = iMois + (((int)cTouche - 48) * 1); break; case 5: iAnnees = (((int)cTouche - 48) * 10); break; case 6: iAnnees = iAnnees + (((int)cTouche - 48) * 1); break; } cSaisieClavier = cSaisieClavier + cTouche; cTouche = ' '; delay(250); } } } tft.fillScreen(BLACK); tft.setRotation(3); tft.setCursor(0, 20); tft.setTextSize(3); tft.setTextColor(GREEN); tft.println("DATE"); tft.setTextColor(YELLOW); tft.println("VOUS AVEZ SAISI "); tft.setTextColor(RED); tft.println(cSaisieClavier); tft.setTextColor(YELLOW); Serial.print("- La date a ete saisie ("); Serial.print(cSaisieClavier); Serial.println(")"); tft.println("EST-CE CORRECT ?"); tft.println("1 OUI / 0 NON"); iNombreTouche = 0; cTouche = ' '; tft.setTextColor(RED); while (iNombreTouche < 1) { cTouche = keypad.getKey(); if (cTouche != NO_KEY) { if ((cTouche >= '0') && (cTouche <= '1')) { iNombreTouche++; if (cTouche == '1') { bSaisieCorrecte = true; cChaineDate = cSaisieClavier; tft.print(cTouche); delay(250); Serial.println("- La date a ete validee."); } else // On recommence tout { tft.print(cTouche); delay(250); Serial.println("(La date a ete refusee.)"); } } } } } // // L'heure // Serial.println("L'heure."); bSaisieCorrecte = false; while (bSaisieCorrecte == false) { iNombreTouche = 0; cTouche = ' '; cSaisieClavier = ""; tft.fillScreen(BLACK); tft.setRotation(3); unsigned long start = micros(); tft.setCursor(0, 20); tft.setTextSize(3); tft.setTextColor(GREEN); tft.println("HEURE"); tft.setTextColor(YELLOW); tft.println("ENTREZ LA VALEUR AVEC"); tft.println("QUATRE CHIFFRES"); tft.println("HHMM"); tft.println("EXEMPLES"); tft.println("0525 OU 1407"); tft.setTextColor(RED); iNombreTouche = 0; cTouche = ' '; iHeures = 0; iMinutes = 0; while (iNombreTouche < 4) { cTouche = keypad.getKey(); if (cTouche != NO_KEY) { if ((cTouche >= '0') && (cTouche <= '9')) { iNombreTouche++; tft.print(cTouche); switch (iNombreTouche) { case 1: iHeures = (((int)cTouche - 48) * 10); break; case 2: iHeures = iHeures + (((int)cTouche - 48) * 1); break; case 3: iMinutes = (((int)cTouche - 48) * 10); break; case 4: iMinutes = iMinutes + (((int)cTouche - 48) * 1); break; } cSaisieClavier = cSaisieClavier + cTouche; cTouche = ' '; delay(250); } } } tft.fillScreen(BLACK); tft.setRotation(3); tft.setCursor(0, 20); tft.setTextSize(3); tft.setTextColor(GREEN); tft.println("HEURE"); tft.setTextColor(YELLOW); tft.println("VOUS AVEZ SAISI "); tft.setTextColor(RED); tft.println(cSaisieClavier); tft.setTextColor(YELLOW); tft.println("EST-CE CORRECT ?"); tft.println("1 OUI / 0 NON"); Serial.print("- L'heure a ete saisie ("); Serial.print(cSaisieClavier); Serial.println(")"); iNombreTouche = 0; cTouche = ' '; tft.setTextColor(RED); while (iNombreTouche < 1) { cTouche = keypad.getKey(); if (cTouche != NO_KEY) { if ((cTouche >= '0') && (cTouche <= '1')) { iNombreTouche++; if (cTouche == '1') { bSaisieCorrecte = true; cCHaineHeure = cSaisieClavier; tft.print(cTouche); delay(250); // On regle la date et l'heure RTC.adjust(DateTime((2000 + iAnnees), iMois, iJours, iHeures, iMinutes, 0)); Serial.println("- L'heure a ete validee."); Serial.println(" "); tft.fillScreen(BLACK); tft.setRotation(3); tft.setCursor(0, 20); tft.setTextSize(3); tft.setTextColor(GREEN); } else // On recommence tout { tft.print(cTouche); delay(250); Serial.println("(L'heure a ete refusee.)"); } } } } } } parametres(); delay(5000); Serial.println("Fin du parametrage"); Serial.println(" "); tft.fillScreen(BLACK); } // // : ----------------------------- : // : BOUCLE PRINCIPALE D'AFFICHAGE : // : ----------------------------- : // if (digitalRead(iDetecteur) == HIGH) { Serial.println("Un mouvement a ete detecte."); Serial.println(" "); // On affiche l'heure litLaDateEtLHeure(); afficheHeure(); // On allume les leds anneauColore(); delay(2500); // On affiche ensuite les messages personnalises. // Dans tous les cas, on affiche BONJOUR, BONSOIR ou BONNE NUIT pour un ou deux prenoms. if ((iHeures >= 20) && (iHeures <= 23)) { afficheBonneNuit(); } if ((iHeures >= 0) && (iHeures < 9)) { afficheBonjour(); } if ((iHeures >= 9) && (iHeures < 12)) { afficheBonneJournee(); } if ((iHeures >= 12) && (iHeures < 13)) { afficheBonAppetit(); } if ((iHeures >= 13) && (iHeures < 17)) { afficheBonApresMidi(); } if ((iHeures >= 17) && (iHeures < 20)) { afficheBonsoir(); } delay(5000); // Si on est a Nouvel An on affiche BONNE ANNEE pour le prenom principal. if ((iJours == 1) && (iMois == 1)) { afficheBonneAnnee(); delay(5000); } // Si on est a Noel on affiche JOYEUX NOEL pour ldes deux prenoms. if ((iJours == 25) && (iMois == 12)) { afficheJoyeuxNoel(); delay(5000); } // C'est un jour de Paques (jusqu'en 2023) if ((iJours == 12) && (iMois == 4) && (iAnnees == 2020)) { afficheJoyeusesPaques(); delay(5000); } if ((iJours == 04) && (iMois == 4) && (iAnnees == 2021)) { afficheJoyeusesPaques(); delay(5000); } if ((iJours == 17) && (iMois == 4) && (iAnnees == 2022)) { afficheJoyeusesPaques(); delay(5000); } if ((iJours == 9) && (iMois == 4) && (iAnnees == 2023)) { afficheJoyeusesPaques(); delay(5000); } // Si on est a un jour anniversaire on affiche BON ANNIVERSAIRE pour le prenom concerne. if ((iJours == 7) && (iMois == 6)) { afficheBonAnniversaire(1); delay(5000); } if ((iJours == 8) && (iMois == 4)) { afficheBonAnniversaire(2); delay(5000); } // Si on est a un jour anniversaire de mariage on affiche BON ANNIVERSAIRE DE MARIAGE sans aucn prenom. if ((iJours == 12) && (iMois == 10)) { afficheBonAnniversaireDeMariage(); delay(5000); } // Si on est a un jour de fete on affiche BONNE FETE pour le prenom concerne. if ((iJours == 9) && (iMois == 9)) { afficheBonneFete(1); delay(5000); } if ((iJours == 21) && (iMois == 1)) { afficheBonneFete(2); delay(5000); } // On affiche la meteo afficheLaMeteo(); delay(5000); // On remet la date et l'heure afficheHeure(); // A la fin, on eteint toutes les lampes en meme temps, apres un delai delay(5000); anneauEteint(); tft.fillScreen(BLACK); } } // // ! ========== ! // ! PRODEDURES ! // ! ========== ! // // : ----------------------------------------------------------- : // : Affiche l'heure et les minutes en gros au milieu de l'ecran : // : ----------------------------------------------------------- : // void afficheHeure() { int xHeuresD = 15; int xHeuresU = 83; int xMinutesD = 167; int xMinutesU = 245; int yHeuresMinutes = 170; litLaDateEtLHeure(); tft.fillScreen(FOND); switch (iHeuresD) // Le chiffre des dizaines des heures. { case 0: Led0Taille3(xHeuresD, yHeuresMinutes, HEURE); break; case 1: Led1Taille3(xHeuresD, yHeuresMinutes, HEURE); break; case 2: Led2Taille3(xHeuresD, yHeuresMinutes, HEURE); break; case 3: Led3Taille3(xHeuresD, yHeuresMinutes, HEURE); break; case 4: Led4Taille3(xHeuresD, yHeuresMinutes, HEURE); break; case 5: Led5Taille3(xHeuresD, yHeuresMinutes, HEURE); break; case 6: Led6Taille3(xHeuresD, yHeuresMinutes, HEURE); break; case 7: Led7Taille3(xHeuresD, yHeuresMinutes, HEURE); break; case 8: Led8Taille3(xHeuresD, yHeuresMinutes, HEURE); break; case 9: Led9Taille3(xHeuresD, yHeuresMinutes, HEURE); break; } switch (iHeuresU) // Le chiffre des unites des heures. { case 0: Led0Taille3(xHeuresU, yHeuresMinutes, HEURE); break; case 1: Led1Taille3(xHeuresU, yHeuresMinutes, HEURE); break; case 2: Led2Taille3(xHeuresU, yHeuresMinutes, HEURE); break; case 3: Led3Taille3(xHeuresU, yHeuresMinutes, HEURE); break; case 4: Led4Taille3(xHeuresU, yHeuresMinutes, HEURE); break; case 5: Led5Taille3(xHeuresU, yHeuresMinutes, HEURE); break; case 6: Led6Taille3(xHeuresU, yHeuresMinutes, HEURE); break; case 7: Led7Taille3(xHeuresU, yHeuresMinutes, HEURE); break; case 8: Led8Taille3(xHeuresU, yHeuresMinutes, HEURE); break; case 9: Led9Taille3(xHeuresU, yHeuresMinutes, HEURE); break; } LedDeuxPointsTaille3(125, yHeuresMinutes - 5, YELLOW); switch (iMinutesD) // Le chiffre des dizaines des minutes. { case 0: Led0Taille3(xMinutesD, yHeuresMinutes, HEURE); break; case 1: Led1Taille3(xMinutesD, yHeuresMinutes, HEURE); break; case 2: Led2Taille3(xMinutesD, yHeuresMinutes, HEURE); break; case 3: Led3Taille3(xMinutesD, yHeuresMinutes, HEURE); break; case 4: Led4Taille3(xMinutesD, yHeuresMinutes, HEURE); break; case 5: Led5Taille3(xMinutesD, yHeuresMinutes, HEURE); break; case 6: Led6Taille3(xMinutesD, yHeuresMinutes, HEURE); break; case 7: Led7Taille3(xMinutesD, yHeuresMinutes, HEURE); break; case 8: Led8Taille3(xMinutesD, yHeuresMinutes, HEURE); break; case 9: Led9Taille3(xMinutesD, yHeuresMinutes, HEURE); break; } switch (iMinutesU) // Le chiffre des unites des minutes. { case 0: Led0Taille3(xMinutesU, yHeuresMinutes, HEURE); break; case 1: Led1Taille3(xMinutesU, yHeuresMinutes, HEURE); break; case 2: Led2Taille3(xMinutesU, yHeuresMinutes, HEURE); break; case 3: Led3Taille3(xMinutesU, yHeuresMinutes, HEURE); break; case 4: Led4Taille3(xMinutesU, yHeuresMinutes, HEURE); break; case 5: Led5Taille3(xMinutesU, yHeuresMinutes, HEURE); break; case 6: Led6Taille3(xMinutesU, yHeuresMinutes, HEURE); break; case 7: Led7Taille3(xMinutesU, yHeuresMinutes, HEURE); break; case 8: Led8Taille3(xMinutesU, yHeuresMinutes, HEURE); break; case 9: Led9Taille3(xMinutesU, yHeuresMinutes, HEURE); break; } } // // : ------------------------------------------------------- : // : Affiche l'heure et les minutes en petit en haut l'ecran : // : ------------------------------------------------------- : // void afficheHeurePetit() { int xHeureD = 115; int xHeureU = 158; int xMinutesD = 217; int xMinutesU = 260; int yHeure = 60; litLaDateEtLHeure(); tft.fillScreen(FOND); switch (iHeuresD) // Le chiffre des dizaines des heures. { case 0: Led0Taille2(xHeureD, yHeure, HEURE); break; case 1: Led1Taille2(xHeureD, yHeure, HEURE); break; case 2: Led2Taille2(xHeureD, yHeure, HEURE); break; case 3: Led3Taille2(xHeureD, yHeure, HEURE); break; case 4: Led4Taille2(xHeureD, yHeure, HEURE); break; case 5: Led5Taille2(xHeureD, yHeure, HEURE); break; case 6: Led6Taille2(xHeureD, yHeure, HEURE); break; case 7: Led7Taille2(xHeureD, yHeure, HEURE); break; case 8: Led8Taille2(xHeureD, yHeure, HEURE); break; case 9: Led9Taille2(xHeureD, yHeure, HEURE); break; } switch (iHeuresU) // Le chiffre des unites des heures. { case 0: Led0Taille2(xHeureU, yHeure, HEURE); break; case 1: Led1Taille2(xHeureU, yHeure, HEURE); break; case 2: Led2Taille2(xHeureU, yHeure, HEURE); break; case 3: Led3Taille2(xHeureU, yHeure, HEURE); break; case 4: Led4Taille2(xHeureU, yHeure, HEURE); break; case 5: Led5Taille2(xHeureU, yHeure, HEURE); break; case 6: Led6Taille2(xHeureU, yHeure, HEURE); break; case 7: Led7Taille2(xHeureU, yHeure, HEURE); break; case 8: Led8Taille2(xHeureU, yHeure, HEURE); break; case 9: Led9Taille2(xHeureU, yHeure, HEURE); break; } LedDeuxPointsTaille2(188, yHeure, YELLOW); switch (iMinutesD) // Le chiffre des dizaines des minutes. { case 0: Led0Taille2(xMinutesD, yHeure, HEURE); break; case 1: Led1Taille2(xMinutesD, yHeure, HEURE); break; case 2: Led2Taille2(xMinutesD, yHeure, HEURE); break; case 3: Led3Taille2(xMinutesD, yHeure, HEURE); break; case 4: Led4Taille2(xMinutesD, yHeure, HEURE); break; case 5: Led5Taille2(xMinutesD, yHeure, HEURE); break; case 6: Led6Taille2(xMinutesD, yHeure, HEURE); break; case 7: Led7Taille2(xMinutesD, yHeure, HEURE); break; case 8: Led8Taille2(xMinutesD, yHeure, HEURE); break; case 9: Led9Taille2(xMinutesD, yHeure, HEURE); break; } switch (iMinutesU) // Le chiffre des unites des minutes. { case 0: Led0Taille2(xMinutesU, yHeure, HEURE); break; case 1: Led1Taille2(xMinutesU, yHeure, HEURE); break; case 2: Led2Taille2(xMinutesU, yHeure, HEURE); break; case 3: Led3Taille2(xMinutesU, yHeure, HEURE); break; case 4: Led4Taille2(xMinutesU, yHeure, HEURE); break; case 5: Led5Taille2(xMinutesU, yHeure, HEURE); break; case 6: Led6Taille2(xMinutesU, yHeure, HEURE); break; case 7: Led7Taille2(xMinutesU, yHeure, HEURE); break; case 8: Led8Taille2(xMinutesU, yHeure, HEURE); break; case 9: Led9Taille2(xMinutesU, yHeure, HEURE); break; } } // // : --------------------------------- : // : Affiche la date en bas de l'ecran : // : --------------------------------- : // void afficheDatePetit() { int xDateD = 30; int xDateU = 65; int yDate = 230; // // Ecrit la date. // litLaDateEtLHeure(); switch (iJoursD) // Le chiffre des dizaines des jours. { case 0: Led0Taille2(xDateD, yDate, DATE); break; case 1: Led1Taille2(xDateD, yDate, DATE); break; case 2: Led2Taille2(xDateD, yDate, DATE); break; case 3: Led3Taille2(xDateD, yDate, DATE); break; case 4: Led4Taille2(xDateD, yDate, DATE); break; case 5: Led5Taille2(xDateD, yDate, DATE); break; case 6: Led6Taille2(xDateD, yDate, DATE); break; case 7: Led7Taille2(xDateD, yDate, DATE); break; case 8: Led8Taille2(xDateD, yDate, DATE); break; case 9: Led9Taille2(xDateD, yDate, DATE); break; } switch (iJoursU) // Le chiffre des unites des jours. { case 0: Led0Taille2(xDateU, yDate, DATE); break; case 1: Led1Taille2(xDateU, yDate, DATE); break; case 2: Led2Taille2(xDateU, yDate, DATE); break; case 3: Led3Taille2(xDateU, yDate, DATE); break; case 4: Led4Taille2(xDateU, yDate, DATE); break; case 5: Led5Taille2(xDateU, yDate, DATE); break; case 6: Led6Taille2(xDateU, yDate, DATE); break; case 7: Led7Taille2(xDateU, yDate, DATE); break; case 8: Led8Taille2(xDateU, yDate, DATE); break; case 9: Led9Taille2(xDateU, yDate, DATE); break; } // // Ecrit le jour en lettres. // xPos = 105; yPos = 195; if (iJoursDeLaSemaine == 0) // DIMANCHE. { DTaille1(xPos, yPos, DATE); ITaille1(xPos, yPos, DATE); MTaille1(xPos, yPos, DATE); ATaille1(xPos, yPos, DATE); NTaille1(xPos, yPos, DATE); CTaille1(xPos, yPos, DATE); HTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); } if (iJoursDeLaSemaine == 1) // LUNDI. { LTaille1(xPos, yPos, DATE); UTaille1(xPos, yPos, DATE); NTaille1(xPos, yPos, DATE); DTaille1(xPos, yPos, DATE); ITaille1(xPos, yPos, DATE); } if (iJoursDeLaSemaine == 2) // MARDI. { MTaille1(xPos, yPos, DATE); ATaille1(xPos, yPos, DATE); RTaille1(xPos, yPos, DATE); DTaille1(xPos, yPos, DATE); ITaille1(xPos, yPos, DATE); } if (iJoursDeLaSemaine == 3) // MERCREDI. { MTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); RTaille1(xPos, yPos, DATE); CTaille1(xPos, yPos, DATE); RTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); DTaille1(xPos, yPos, DATE); ITaille1(xPos, yPos, DATE); } if (iJoursDeLaSemaine == 4) // JEUDI. { JTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); UTaille1(xPos, yPos, DATE); DTaille1(xPos, yPos, DATE); ITaille1(xPos, yPos, DATE); } if (iJoursDeLaSemaine == 5) // VENDREDI. { VTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); NTaille1(xPos, yPos, DATE); DTaille1(xPos, yPos, DATE); RTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); DTaille1(xPos, yPos, DATE); ITaille1(xPos, yPos, DATE); } if (iJoursDeLaSemaine == 6) // SAMEDI. { STaille1(xPos, yPos, DATE); ATaille1(xPos, yPos, DATE); MTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); DTaille1(xPos, yPos, DATE); ITaille1(xPos, yPos, DATE); } // // Ecrit le mois en lettres. // xPos = 105; yPos = 228; if (iMois == 1) // JANVIER. { JTaille1(xPos, yPos, DATE); ATaille1(xPos, yPos, DATE); NTaille1(xPos, yPos, DATE); VTaille1(xPos, yPos, DATE); ITaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); RTaille1(xPos, yPos, DATE); } if (iMois == 2) // FEVRIER. { FTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); VTaille1(xPos, yPos, DATE); RTaille1(xPos, yPos, DATE); ITaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); RTaille1(xPos, yPos, DATE); } if (iMois == 3) // MARS. { MTaille1(xPos, yPos, DATE); ATaille1(xPos, yPos, DATE); RTaille1(xPos, yPos, DATE); STaille1(xPos, yPos, DATE); } if (iMois == 4) // AVRIL. { ATaille1(xPos, yPos, DATE); VTaille1(xPos, yPos, DATE); RTaille1(xPos, yPos, DATE); ITaille1(xPos, yPos, DATE); LTaille1(xPos, yPos, DATE); } if (iMois == 5) // MAI. { MTaille1(xPos, yPos, DATE); ATaille1(xPos, yPos, DATE); ITaille1(xPos, yPos, DATE); } if (iMois == 6) // JUIN. { JTaille1(xPos, yPos, DATE); UTaille1(xPos, yPos, DATE); ITaille1(xPos, yPos, DATE); NTaille1(xPos, yPos, DATE); } if (iMois == 7) // JUILLET. { JTaille1(xPos, yPos, DATE); UTaille1(xPos, yPos, DATE); ITaille1(xPos, yPos, DATE); LTaille1(xPos, yPos, DATE); LTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); TTaille1(xPos, yPos, DATE); } if (iMois == 8) // AOUT. { ATaille1(xPos, yPos, DATE); OTaille1(xPos, yPos, DATE); UTaille1(xPos, yPos, DATE); TTaille1(xPos, yPos, DATE); } if (iMois == 9) // SEPTEMBRE. { STaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); PTaille1(xPos, yPos, DATE); TTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); MTaille1(xPos, yPos, DATE); BTaille1(xPos, yPos, DATE); RTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); } if (iMois == 10) // OCTOBRE. { OTaille1(xPos, yPos, DATE); CTaille1(xPos, yPos, DATE); TTaille1(xPos, yPos, DATE); OTaille1(xPos, yPos, DATE); BTaille1(xPos, yPos, DATE); RTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); } if (iMois == 11) // NOVEMBRE. { NTaille1(xPos, yPos, DATE); OTaille1(xPos, yPos, DATE); VTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); MTaille1(xPos, yPos, DATE); BTaille1(xPos, yPos, DATE); RTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); } if (iMois == 12) // DECEMBRE. { DTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); CTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); MTaille1(xPos, yPos, DATE); BTaille1(xPos, yPos, DATE); RTaille1(xPos, yPos, DATE); ETaille1(xPos, yPos, DATE); } } // // : ---------------------- : // : Affiche la temperature : // : ---------------------- : // void afficheLaMeteo() { litLaDateEtLHeure(); tft.fillScreen(FOND); Serial.println("Affiche la temperature"); Serial.println(" "); // L'heure en petit caracteres en haut. afficheHeurePetit(); litLaMeteo(); iTemperatureD = (int)fTemperatureC / 10; iTemperatureU = fTemperatureC - (iTemperatureD * 10); Serial.print("Les chiffres de la temperature sont :"); Serial.print(iTemperatureD); Serial.print(" et "); Serial.print(iTemperatureU); Serial.println("."); // Le message TEMP. xPos = 10; yPos = 140; TTaille1(xPos, yPos, BLUE); ETaille1(xPos, yPos, BLUE); MTaille1(xPos, yPos, BLUE); PTaille1(xPos, yPos, BLUE); ETaille1(xPos, yPos, BLUE); RTaille1(xPos, yPos, BLUE); ATaille1(xPos, yPos, BLUE); TTaille1(xPos, yPos, BLUE); UTaille1(xPos, yPos, BLUE); RTaille1(xPos, yPos, BLUE); ETaille1(xPos, yPos, BLUE); xPos = 220; yPos = 140; // La serie de if ci-dessous n'est pas tres elegante, mais le recours a case // switch aboutissait ici a des plantages systematiques sur le second chiffre. if (iTemperatureD == 0) { Led0Taille2(xPos, yPos, BLUE); } if (iTemperatureD == 1) { Led1Taille2(xPos, yPos, BLUE); } if (iTemperatureD == 2) { Led2Taille2(xPos, yPos, BLUE); } if (iTemperatureD == 3) { Led3Taille2(xPos, yPos, BLUE); } if (iTemperatureD == 4) { Led4Taille2(xPos, yPos, BLUE); } if (iTemperatureD == 5) { Led5Taille2(xPos, yPos, BLUE); } if (iTemperatureD == 6) { Led6Taille2(xPos, yPos, BLUE); } if (iTemperatureD == 7) { Led7Taille2(xPos, yPos, BLUE); } if (iTemperatureD == 8) { Led8Taille2(xPos, yPos, BLUE); } if (iTemperatureD == 9) { Led9Taille2(xPos, yPos, BLUE); } xPos = 260; yPos = 140; if (iTemperatureU == 0) { Led0Taille2(xPos, yPos, BLUE); } if (iTemperatureU == 1) { Led1Taille2(xPos, yPos, BLUE); } if (iTemperatureU == 2) { Led2Taille2(xPos, yPos, BLUE); } if (iTemperatureU == 3) { Led3Taille2(xPos, yPos, BLUE); } if (iTemperatureU == 4) { Led4Taille2(xPos, yPos, BLUE); } if (iTemperatureU == 5) { Led5Taille2(xPos, yPos, BLUE); } if (iTemperatureU == 6) { Led6Taille2(xPos, yPos, BLUE); } if (iTemperatureU == 7) { Led7Taille2(xPos, yPos, BLUE); } if (iTemperatureU == 8) { Led8Taille2(xPos, yPos, BLUE); } if (iTemperatureU == 9) { Led9Taille2(xPos, yPos, BLUE); } afficheDatePetit(); } // // : ----------------- : // : Lit le module RTC : // : ----------------- : // void litLaDateEtLHeure() { now = RTC.now(); // On lit l'heure complete et on extrait iHeures = now.hour(); // l'heure, iMinutes = now.minute(); // les minutes, iJours = now.day(); // la date du jour, iMois = now.month(); // le mois, iAnnees = now.year(); // l'annee iJoursDeLaSemaine = now.dayOfTheWeek(); // et le jour de la semaine. if (iHeures >= 10) { iHeuresD = iHeures / 10; iHeuresU = iHeures - (iHeuresD * 10); } else { iHeuresD = 0; iHeuresU = iHeures; } if (iMinutes >= 10) { iMinutesD = iMinutes / 10; iMinutesU = iMinutes - (iMinutesD * 10); } else { iMinutesD = 0; iMinutesU = iMinutes; } cJours = (String)iJours; if (iJours >= 10) { iJoursD = iJours / 10; iJoursU = iJours - (iJoursD * 10); } else { iJoursD = 0; iJoursU = iJours; } Serial.println("Lecture du module RTC."); Serial.print("Date : "); Serial.print(iJours); Serial.print(" ("); Serial.print(iJoursDeLaSemaine); Serial.println(")"); Serial.print("Heure : ("); Serial.print(iHeures); Serial.print(":"); Serial.print(iMinutes); Serial.println(")"); } // // : ------------------ : // : Lit la temperature : // : ------------------ : // void litLaMeteo() { // // Temperature. // fTemperatureC = bmp280.getTemperature(); // Le capteur donne la temperature en degres Celsius. // // Les mesures effectuees avec un thermometre montrent que la temperature est trop elevee de quate // degres et qu'il convient de corriger la valeur. fTemperatureC = fTemperatureC - 4; if (fTemperatureC < 0) { fTemperatureC = 0; } Serial.print("- la meteo ("); Serial.print(fTemperatureC); Serial.print(" degres C - "); } // // : ------------------------ : // : Affiche Bon Anniversaire : // : ------------------------ : // void afficheBonAnniversaire(int iNumeroPrenom) { Serial.println("Affiche Bon Anniversaire"); Serial.println(" "); litLaDateEtLHeure(); tft.fillScreen(FOND); // L'heure en petit caracteres en haut. afficheHeurePetit(); // Le message BON ANNIVERSAIRE. xPos = 30; yPos = 110; BTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); xPos += 20; ATaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); VTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); RTaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); ATaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); RTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); if (iNumeroPrenom == 1) { afficheLePremierPrenom(); } else { afficheLeSecondPrenom(); } // La date en petits caracteres. afficheDatePetit(); anneauFete(); } // // : ----------------------------------- : // : Affiche Bon Anniversaire De Mariage : // : ----------------------------------- : // void afficheBonAnniversaireDeMariage() { Serial.println("Affiche Bon Anniversaire De Mariage"); Serial.println(" "); litLaDateEtLHeure(); tft.fillScreen(FOND); // L'heure en petit caracteres en haut. afficheHeurePetit(); // Le message BON ANNIVERSAIRE DE MARIAGE8. xPos = 30; yPos = 110; BTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); xPos += 20; ATaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); VTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); RTaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); ATaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); RTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); xPos = 30; yPos = 140; DTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); xPos += 20; MTaille1(xPos, yPos, MESSAGE); ATaille1(xPos, yPos, MESSAGE); RTaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); ATaille1(xPos, yPos, MESSAGE); GTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); // La date en petits caracteres. afficheDatePetit(); anneauFete(); } // // : ------------------ : // : Affiche Bonne Fete : // : ------------------ : // void afficheBonneFete(int iNumeroPrenom) { Serial.println("Affiche Bonne Fete"); Serial.println(" "); litLaDateEtLHeure(); tft.fillScreen(FOND); // L'heure en petit caracteres en haut. afficheHeurePetit(); // Le message BONNE FETE. xPos = 30; yPos = 110; BTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); xPos += 20; FTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); TTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); if (iNumeroPrenom == 1) { afficheLePremierPrenom(); } else { afficheLeSecondPrenom(); } // La date en petits caracteres. afficheDatePetit(); anneauFete(); } // // : ------------------- : // : Affiche Joyeux Noel : // : ------------------- : // void afficheJoyeuxNoel() { Serial.println("Affiche Joyeux Noel"); Serial.println(" "); litLaDateEtLHeure(); tft.fillScreen(FOND); // L'heure en petit caracteres en haut. afficheHeurePetit(); // Le message JOYEUX NOEL. xPos = 30; yPos = 110; JTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); YTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); UTaille1(xPos, yPos, MESSAGE); XTaille1(xPos, yPos, MESSAGE); xPos += 20; NTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); LTaille1(xPos, yPos, MESSAGE); if (iOrdre == 0) { afficheLesPrenoms(); iOrdre = 1; } else { afficheLesPrenomsInverses(); iOrdre = 0; } // La date en petits caracteres. afficheDatePetit(); anneauFete(); } // // : ----------------------- : // : Affiche Joyeuses Paques : // : ----------------------- : // void afficheJoyeusesPaques() { Serial.println("Affiche Joyeuses Paques"); Serial.println(" "); litLaDateEtLHeure(); tft.fillScreen(FOND); // L'heure en petit caracteres en haut. afficheHeurePetit(); // Le message JOYEUSES PAQUES. xPos = 30; yPos = 110; JTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); YTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); UTaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); xPos += 20; PTaille1(xPos, yPos, MESSAGE); ATaille1(xPos, yPos, MESSAGE); QTaille1(xPos, yPos, MESSAGE); UTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); if (iOrdre == 0) { afficheLesPrenoms(); iOrdre = 1; } else { afficheLesPrenomsInverses(); iOrdre = 0; } afficheDatePetit(); anneauFete(); } // // : ------------------- : // : Affiche Bonne Annee : // : ------------------- : // void afficheBonneAnnee() { Serial.println("Affiche Bonne Annee"); Serial.println(" "); litLaDateEtLHeure(); tft.fillScreen(FOND); // L'heure en petit caracteres en haut. afficheHeurePetit(); // Le message BONNE ANNEE. xPos = 30; yPos = 110; BTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); xPos += 20; ATaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); if (iOrdre == 0) { afficheLesPrenoms(); iOrdre = 1; } else { afficheLesPrenomsInverses(); iOrdre = 0; } // La date en petits caracteres. afficheDatePetit(); } // // : --------------- : // : Affiche Bonjour : // : --------------- : // void afficheBonjour() { Serial.println("Affiche Bonjour"); Serial.println(" "); litLaDateEtLHeure(); tft.fillScreen(FOND); // L'heure en petit caracteres en haut. afficheHeurePetit(); // Le message BONJOUR. xPos = 30; yPos = 110; BTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); JTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); UTaille1(xPos, yPos, MESSAGE); RTaille1(xPos, yPos, MESSAGE); if (iOrdre == 0) { afficheLesPrenoms(); iOrdre = 1; } else { afficheLesPrenomsInverses(); iOrdre = 0; } // La date en petits caracteres. afficheDatePetit(); } // // : --------------------- : // : Affiche Bonne journee : // : --------------------- : // void afficheBonneJournee() { Serial.println("Affiche Bonne Journee"); Serial.println(" "); litLaDateEtLHeure(); tft.fillScreen(FOND); // L'heure en petit caracteres en haut. afficheHeurePetit(); // Le message BONJOUR. xPos = 30; yPos = 110; BTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); xPos += 10; JTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); UTaille1(xPos, yPos, MESSAGE); RTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); if (iOrdre == 0) { afficheLesPrenoms(); iOrdre = 1; } else { afficheLesPrenomsInverses(); iOrdre = 0; } // La date en petits caracteres. afficheDatePetit(); } // // : --------------- : // : Affiche Bonsoir : // : --------------- : // void afficheBonsoir() { Serial.println("Affiche Bonsoir"); Serial.println(" "); litLaDateEtLHeure(); tft.fillScreen(FOND); // L'heure en petit caracteres en haut. afficheHeurePetit(); // Le message BONSOIR. xPos = 30; yPos = 110; BTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); RTaille1(xPos, yPos, MESSAGE); if (iOrdre == 0) { afficheLesPrenoms(); iOrdre = 1; } else { afficheLesPrenomsInverses(); iOrdre = 0; } // La date en petits caracteres. afficheDatePetit(); } // // : ---------------------- : // : Affiche Bon Apres-Midi : // : ---------------------- : // void afficheBonApresMidi() { Serial.println("Affiche Bon Apres-Midi"); Serial.println(" "); litLaDateEtLHeure(); // L'heure en petit caracteres en haut. afficheHeurePetit(); // Le message BON APRES-MIDI. xPos = 30; yPos = 110; BTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); xPos += 10; ATaille1(xPos, yPos, MESSAGE); PTaille1(xPos, yPos, MESSAGE); RTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); xPos += 10; MTaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); DTaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); if (iOrdre == 0) { afficheLesPrenoms(); iOrdre = 1; } else { afficheLesPrenomsInverses(); iOrdre = 0; } // La date en petits caracteres. afficheDatePetit(); } // // : ------------------- : // : Affiche Bon Appetit : // : ------------------- : // void afficheBonAppetit() { Serial.println("Affiche Bon Appetit"); Serial.println(" "); litLaDateEtLHeure(); // L'heure en petit caracteres en haut. afficheHeurePetit(); // Le message BON APPETIT. xPos = 30; yPos = 110; BTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); xPos += 10; ATaille1(xPos, yPos, MESSAGE); PTaille1(xPos, yPos, MESSAGE); PTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); TTaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); TTaille1(xPos, yPos, MESSAGE); if (iOrdre == 0) { afficheLesPrenoms(); iOrdre = 1; } else { afficheLesPrenomsInverses(); iOrdre = 0; } // La date en petits caracteres. afficheDatePetit(); } // // : ------------------ : // : Affiche Bonne Nuit : // : ------------------ : // void afficheBonneNuit() { Serial.println("Affiche Bonne Nuit"); Serial.println(" "); litLaDateEtLHeure(); tft.fillScreen(FOND); // L'heure en petit caracteres en haut. afficheHeurePetit(); // Le message BONNE NUIT. xPos = 30; yPos = 110; BTaille1(xPos, yPos, MESSAGE); OTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); xPos += 20; NTaille1(xPos, yPos, MESSAGE); UTaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); TTaille1(xPos, yPos, MESSAGE); if (iOrdre == 0) { afficheLesPrenoms(); iOrdre = 1; } else { afficheLesPrenomsInverses(); iOrdre = 0; } // La date en petits caracteres. afficheDatePetit(); } // // : ------------------------- : // : Affiche le premier prenom : (Alain) // : ------------------------- : // void afficheLePremierPrenom() { xPos = 30; yPos = 140; ATaille1(xPos, yPos, MESSAGE); LTaille1(xPos, yPos, MESSAGE); ATaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); } // // : ------------------------ : // : Affiche le second prenom : (Agnes) // : ------------------------ : // void afficheLeSecondPrenom() { xPos = 30; yPos = 140; ATaille1(xPos, yPos, MESSAGE); GTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); } // // : --------------------- : // : Affiche le.s prenom.s : (Alain et Agnes) // : --------------------- : // void afficheLesPrenoms() { xPos = 30; yPos = 140; ATaille1(xPos, yPos, MESSAGE); LTaille1(xPos, yPos, MESSAGE); ATaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); // Espace xPos += 20; ETaille1(xPos, yPos, MESSAGE); TTaille1(xPos, yPos, MESSAGE); // Espace xPos += 20; ATaille1(xPos, yPos, MESSAGE); GTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); } // // : ------------------------------- : // : Affiche le.s prenom.s inverse.s : (Agnes et Alain) // : ------------------------------- : // void afficheLesPrenomsInverses() { xPos = 30; yPos = 140; ATaille1(xPos, yPos, MESSAGE); GTaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); ETaille1(xPos, yPos, MESSAGE); STaille1(xPos, yPos, MESSAGE); // Espace. xPos += 20; ETaille1(xPos, yPos, MESSAGE); TTaille1(xPos, yPos, MESSAGE); // Espace. xPos += 20; ATaille1(xPos, yPos, MESSAGE); LTaille1(xPos, yPos, MESSAGE); ATaille1(xPos, yPos, MESSAGE); ITaille1(xPos, yPos, MESSAGE); NTaille1(xPos, yPos, MESSAGE); } // // : ----------- : // : LES LETTRES : // : ----------- : // // : - : // : A : // : - : // void ATaille1(int x, int y, int iColor) // Largeur 19. { tft.fillRect(x, y - 1, 2, 2, iColor); tft.fillRect(x + 1, y - 4, 2, 3, iColor); tft.fillRect(x + 2, y - 6, 2, 3, iColor); tft.fillRect(x + 3, y - 9, 2, 4, iColor); tft.fillRect(x + 4, y - 12, 2, 3, iColor); tft.fillRect(x + 5, y - 15, 2, 4, iColor); tft.fillRect(x + 6, y - 17, 2, 3, iColor); tft.fillRect(x + 7, y - 19, 3, 2, iColor); tft.fillRect(x + 9, y - 17, 2, 3, iColor); tft.fillRect(x + 10, y - 16, 2, 4, iColor); tft.fillRect(x + 11, y - 13, 2, 3, iColor); tft.fillRect(x + 12, y - 10, 2, 4, iColor); tft.fillRect(x + 13, y - 7, 2, 3, iColor); tft.fillRect(x + 14, y - 5, 2, 3, iColor); tft.fillRect(x + 15, y - 2, 2, 2, iColor); tft.fillRect(x + 3, y - 7, 11, 2, iColor); xPos += 19; } void ATaille2(int x, int y, int iColor) // Largeur 38. { tft.fillRect(x, y - 2, 4, 4, iColor); tft.fillRect(x + 2, y - 8, 4, 6, iColor); tft.fillRect(x + 4, y - 12, 4, 6, iColor); tft.fillRect(x + 6, y - 18, 4, 8, iColor); tft.fillRect(x + 8, y - 24, 4, 6, iColor); tft.fillRect(x + 10, y - 30, 4, 8, iColor); tft.fillRect(x + 12, y - 34, 4, 6, iColor); tft.fillRect(x + 14, y - 38, 6, 4, iColor); tft.fillRect(x + 18, y - 34, 4, 6, iColor); tft.fillRect(x + 20, y - 32, 4, 8, iColor); tft.fillRect(x + 22, y - 26, 4, 6, iColor); tft.fillRect(x + 24, y - 20, 4, 8, iColor); tft.fillRect(x + 26, y - 14, 4, 6, iColor); tft.fillRect(x + 28, y - 10, 4, 6, iColor); tft.fillRect(x + 30, y - 4, 4, 4, iColor); tft.fillRect(x + 6, y - 14, 22, 4, iColor); xPos += 38; } // // : - : // : B : // : - : // void BTaille1(int x, int y, int iColor) // Largeur 16. { tft.fillRect(x, y - 19, 2, 20, iColor); tft.fillRect(x, y - 19, 11, 2, iColor); tft.fillRect(x, y - 10, 12, 2, iColor); tft.fillRect(x, y - 1, 11, 2, iColor); tft.fillRect(x + 10, y - 18, 2, 2, iColor); tft.fillRect(x + 11, y - 17, 2, 2, iColor); tft.fillRect(x + 11, y - 16, 2, 5, iColor); tft.fillRect(x + 11, y - 15, 2, 2, iColor); tft.fillRect(x + 11, y - 12, 2, 3, iColor); tft.fillRect(x + 12, y - 9, 2, 2, iColor); tft.fillRect(x + 12, y - 7, 2, 5, iColor); tft.fillRect(x + 12, y - 3, 2, 2, iColor); tft.fillRect(x + 11, y - 2, 2, 2, iColor); xPos += 16; } void BTaille2(int x, int y, int iColor) // Largeur 32. { tft.fillRect(x, y - 38, 4, 40, iColor); tft.fillRect(x, y - 38, 22, 4, iColor); tft.fillRect(x, y - 20, 24, 4, iColor); tft.fillRect(x, y - 2, 22, 4, iColor); tft.fillRect(x + 20, y - 36, 4, 4, iColor); tft.fillRect(x + 22, y - 34, 4, 4, iColor); tft.fillRect(x + 22, y - 32, 4, 10, iColor); tft.fillRect(x + 22, y - 30, 4, 4, iColor); tft.fillRect(x + 22, y - 24, 4, 6, iColor); tft.fillRect(x + 24, y - 18, 4, 4, iColor); tft.fillRect(x + 24, y - 14, 4, 10, iColor); tft.fillRect(x + 24, y - 6, 4, 4, iColor); tft.fillRect(x + 22, y - 4, 4, 4, iColor); xPos += 32; } // // : - : // : C : // : - : // void CTaille1(int x, int y, int iColor) // Largeur 20. { tft.fillRect(x + 16, y - 6, 2, 2, iColor); tft.fillRect(x + 15, y - 5, 2, 3, iColor); tft.fillRect(x + 14, y - 3, 2, 2, iColor); tft.fillRect(x + 12, y - 2, 3, 2, iColor); tft.fillRect(x + 6, y - 1, 7, 2, iColor); tft.fillRect(x + 4, y - 2, 2, 2, iColor); tft.fillRect(x + 3, y - 3, 2, 2, iColor); tft.fillRect(x + 3, y - 4, 2, 2, iColor); tft.fillRect(x + 1, y - 6, 2, 3, iColor); tft.fillRect(x + 0, y - 13, 2, 7, iColor); tft.fillRect(x + 1, y - 15, 2, 3, iColor); tft.fillRect(x + 2, y - 16, 2, 2, iColor); tft.fillRect(x + 3, y - 17, 2, 2, iColor); tft.fillRect(x + 4, y - 18, 2, 2, iColor); tft.fillRect(x + 6, y - 19, 7, 2, iColor); tft.fillRect(x + 13, y - 18, 2, 2, iColor); tft.fillRect(x + 14, y - 17, 2, 2, iColor); tft.fillRect(x + 15, y - 16, 2, 2, iColor); tft.fillRect(x + 16, y - 15, 2, 2, iColor); xPos += 20; } void CTaille2(int x, int y, int iColor) // Largeur 40. { tft.fillRect(x + 33, y - 12, 4, 4, iColor); tft.fillRect(x + 30, y - 10, 4, 6, iColor); tft.fillRect(x + 28, y - 6, 4, 4, iColor); tft.fillRect(x + 24, y - 4, 6, 4, iColor); tft.fillRect(x + 11, y - 2, 14, 4, iColor); tft.fillRect(x + 8, y - 4, 4, 4, iColor); tft.fillRect(x + 6, y - 6, 4, 4, iColor); tft.fillRect(x + 6, y - 8, 4, 4, iColor); tft.fillRect(x + 2, y - 12, 4, 6, iColor); tft.fillRect(x + 0, y - 26, 4, 14, iColor); tft.fillRect(x + 2, y - 30, 4, 6, iColor); tft.fillRect(x + 4, y - 32, 4, 4, iColor); tft.fillRect(x + 6, y - 34, 4, 4, iColor); tft.fillRect(x + 8, y - 36, 4, 4, iColor); tft.fillRect(x + 12, y - 38, 14, 4, iColor); tft.fillRect(x + 26, y - 36, 4, 4, iColor); tft.fillRect(x + 28, y - 34, 4, 4, iColor); tft.fillRect(x + 30, y - 32, 4, 4, iColor); tft.fillRect(x + 32, y - 30, 4, 4, iColor); xPos += 40; } // // : - : // : D : // : - : // void DTaille1(int x, int y, int iColor) // Largeur 19. { tft.fillRect(x + 0, y - 19, 2, 19, iColor); tft.fillRect(x + 0, y - 19, 12, 2, iColor); tft.fillRect(x + 0, y - 1, 12, 2, iColor); tft.fillRect(x + 11, y - 18, 2, 2, iColor); tft.fillRect(x + 13, y - 17, 2, 2, iColor); tft.fillRect(x + 14, y - 15, 2, 2, iColor); tft.fillRect(x + 15, y - 13, 2, 8, iColor); tft.fillRect(x + 14, y - 5, 2, 2, iColor); tft.fillRect(x + 13, y - 3, 2, 2, iColor); tft.fillRect(x + 12, y - 2, 2, 2, iColor); xPos += 19; } void DTaille2(int x, int y, int iColor) // Largeur 38. { tft.fillRect(x + 0, y - 38, 4, 38, iColor); tft.fillRect(x + 0, y - 38, 24, 4, iColor); tft.fillRect(x + 0, y - 2, 24, 4, iColor); tft.fillRect(x + 22, y - 36, 4, 4, iColor); tft.fillRect(x + 26, y - 34, 4, 4, iColor); tft.fillRect(x + 28, y - 30, 4, 4, iColor); tft.fillRect(x + 30, y - 26, 4, 16, iColor); tft.fillRect(x + 28, y - 10, 4, 4, iColor); tft.fillRect(x + 26, y - 6, 4, 4, iColor); tft.fillRect(x + 24, y - 4, 4, 4, iColor); xPos += 38; } // // : - : // : E : // : - : // void ETaille1(int x, int y, int iColor) // Largeur 17. { tft.fillRect(x + 0, y - 19, 2, 19, iColor); tft.fillRect(x + 0, y - 19, 15, 2, iColor); tft.fillRect(x + 0, y - 10, 14, 2, iColor); tft.fillRect(x + 0, y - 0, 15, 2, iColor); xPos += 17; } void ETaille2(int x, int y, int iColor) // Largeur 34. { tft.fillRect(x + 0, y - 38, 4, 38, iColor); tft.fillRect(x + 0, y - 38, 30, 4, iColor); tft.fillRect(x + 0, y - 20, 28, 4, iColor); tft.fillRect(x + 0, y - 0, 30, 4, iColor); xPos += 34; } // // : - : // : F : // : - : // void FTaille1(int x, int y, int iColor) // Largeur 17. { tft.fillRect(x + 0, y - 19, 2, 21, iColor); tft.fillRect(x + 0, y - 19, 15, 2, iColor); tft.fillRect(x + 0, y - 10, 12, 2, iColor); xPos += 17; } void FTaille2(int x, int y, int iColor) // Largeur 34. { tft.fillRect(x + 0, y - 38, 4, 42, iColor); tft.fillRect(x + 0, y - 38, 30, 4, iColor); tft.fillRect(x + 0, y - 20, 24, 4, iColor); xPos += 34; } // // : - : // : G : // : - : // void GTaille1(int x, int y, int iColor) // Largeur 20. { tft.fillRect(x + 16, y - 6, 2, 2, iColor); tft.fillRect(x + 15, y - 5, 2, 3, iColor); tft.fillRect(x + 14, y - 3, 2, 2, iColor); tft.fillRect(x + 12, y - 2, 3, 2, iColor); tft.fillRect(x + 6, y - 1, 7, 2, iColor); tft.fillRect(x + 4, y - 2, 2, 2, iColor); tft.fillRect(x + 3, y - 3, 2, 2, iColor); tft.fillRect(x + 3, y - 4, 2, 2, iColor); tft.fillRect(x + 1, y - 6, 2, 3, iColor); tft.fillRect(x + 0, y - 13, 2, 7, iColor); tft.fillRect(x + 1, y - 15, 2, 3, iColor); tft.fillRect(x + 2, y - 16, 2, 2, iColor); tft.fillRect(x + 3, y - 17, 2, 2, iColor); tft.fillRect(x + 4, y - 18, 2, 2, iColor); tft.fillRect(x + 6, y - 19, 7, 2, iColor); tft.fillRect(x + 13, y - 18, 2, 2, iColor); tft.fillRect(x + 14, y - 17, 2, 2, iColor); tft.fillRect(x + 15, y - 16, 2, 2, iColor); tft.fillRect(x + 16, y - 15, 2, 2, iColor); tft.fillRect(x + 10, y - 10, 8, 2, iColor); tft.fillRect(x + 16, y - 10, 2, 7, iColor); xPos += 20; } void GTaille2(int x, int y, int iColor) // Largeur 40. { tft.fillRect(x + 33, y - 12, 4, 4, iColor); tft.fillRect(x + 30, y - 10, 4, 6, iColor); tft.fillRect(x + 28, y - 6, 4, 4, iColor); tft.fillRect(x + 24, y - 4, 6, 4, iColor); tft.fillRect(x + 11, y - 2, 14, 4, iColor); tft.fillRect(x + 8, y - 4, 4, 4, iColor); tft.fillRect(x + 6, y - 6, 4, 4, iColor); tft.fillRect(x + 6, y - 8, 4, 4, iColor); tft.fillRect(x + 2, y - 12, 4, 6, iColor); tft.fillRect(x + 0, y - 26, 4, 14, iColor); tft.fillRect(x + 2, y - 30, 4, 6, iColor); tft.fillRect(x + 4, y - 32, 4, 4, iColor); tft.fillRect(x + 6, y - 34, 4, 4, iColor); tft.fillRect(x + 8, y - 36, 4, 4, iColor); tft.fillRect(x + 12, y - 38, 14, 4, iColor); tft.fillRect(x + 26, y - 36, 4, 4, iColor); tft.fillRect(x + 28, y - 34, 4, 4, iColor); tft.fillRect(x + 30, y - 32, 4, 4, iColor); tft.fillRect(x + 32, y - 30, 4, 4, iColor); tft.fillRect(x + 20, y - 20, 16, 4, iColor); tft.fillRect(x + 32, y - 20, 4, 14, iColor); xPos += 40; } // // : - : // : H : // : - : // void HTaille1(int x, int y, int iColor) // Largeur 17. { tft.fillRect(x + 0, y - 19, 2, 20, iColor); tft.fillRect(x + 0, y - 10, 15, 2, iColor); tft.fillRect(x + 13, y - 19, 2, 20, iColor); xPos += 17; } void HTaille2(int x, int y, int iColor) // Largeur 34. { tft.fillRect(x + 0, y - 38, 4, 40, iColor); tft.fillRect(x + 0, y - 20, 30, 4, iColor); tft.fillRect(x + 26, y - 38, 4, 40, iColor); xPos += 34; } // // : - : // : I : // : - : // void ITaille1(int x, int y, int iColor) // Largeur 7. { tft.fillRect(x + 0, y - 19, 2, 20, iColor); xPos += 7; } void ITaille2(int x, int y, int iColor) // Largeur 14. { tft.fillRect(x + 0, y - 38, 4, 40, iColor); xPos += 14; } // // : - : // : J : // : - : // void JTaille1(int x, int y, int iColor) // Largeur 13. { tft.fillRect(x + 0, y - 5, 2, 3, iColor); tft.fillRect(x + 1, y - 2, 2, 2, iColor); tft.fillRect(x + 2, y - 1, 5, 2, iColor); tft.fillRect(x + 7, y - 2, 2, 2, iColor); tft.fillRect(x + 8, y - 19, 2, 17, iColor); xPos += 13; } void JTaille2(int x, int y, int iColor) // Largeur 26. { tft.fillRect(x + 0, y - 10, 4, 6, iColor); tft.fillRect(x + 2, y - 4, 4, 4, iColor); tft.fillRect(x + 4, y - 2, 10, 4, iColor); tft.fillRect(x + 14, y - 4, 4, 4, iColor); tft.fillRect(x + 16, y - 38, 4, 34, iColor); xPos += 26; } // // : - : // : K : // : - : // void KTaille1(int x, int y, int iColor) // Largeur 18. { tft.fillRect(x + 0, y - 19, 2, 20, iColor); tft.drawLine(x + 2, y - 9, x + 12, y - 19, iColor); tft.drawLine(x + 2, y - 8, x + 13, y - 19, iColor); tft.drawLine(x + 2, y - 7, x + 14, y - 19, iColor); tft.fillRect(x + 6, y - 10, 2, 2, iColor); tft.fillRect(x + 7, y - 8, 3, 2, iColor); tft.fillRect(x + 8, y - 6, 3, 1, iColor); tft.fillRect(x + 9, y - 5, 3, 1, iColor); tft.fillRect(x + 10, y - 4, 3, 1, iColor); tft.fillRect(x + 11, y - 3, 2, 2, iColor); tft.fillRect(x + 12, y - 2, 3, 1, iColor); tft.fillRect(x + 12, y - 1, 3, 1, iColor); tft.fillRect(x + 13, y - 0, 3, 0, iColor); xPos += 18; } void KTaille2(int x, int y, int iColor) // Largeur 36. { tft.fillRect(x + 0, y - 38, 4, 40, iColor); tft.drawLine(x + 4, y - 18, x + 24, y - 38, iColor); tft.drawLine(x + 4, y - 16, x + 26, y - 38, iColor); tft.drawLine(x + 4, y - 14, x + 28, y - 38, iColor); tft.fillRect(x + 12, y - 20, 4, 4, iColor); tft.fillRect(x + 14, y - 16, 6, 4, iColor); tft.fillRect(x + 16, y - 12, 6, 2, iColor); tft.fillRect(x + 18, y - 10, 6, 2, iColor); tft.fillRect(x + 20, y - 8, 6, 2, iColor); tft.fillRect(x + 22, y - 6, 4, 4, iColor); tft.fillRect(x + 24, y - 4, 6, 2, iColor); tft.fillRect(x + 24, y - 2, 6, 2, iColor); tft.fillRect(x + 26, y - 0, 6, 0, iColor); xPos += 36; } // // : - : // : L : // : - : // void LTaille1(int x, int y, int iColor) // Largeur 14. { tft.fillRect(x + 0, y - 19, 2, 20, iColor); tft.fillRect(x + 0, y - 1, 12, 2, iColor); xPos += 14; } void LTaille2(int x, int y, int iColor) // Largeur 28. { tft.fillRect(x + 0, y - 38, 4, 40, iColor); tft.fillRect(x + 0, y - 2, 24, 4, iColor); xPos += 28; } // // : - : // : M : // : - : // void MTaille1(int x, int y, int iColor) // Largeur 18. { tft.fillRect(x + 0, y - 19, 2, 20, iColor); tft.fillRect(x + 0, y - 18, 4, 3, iColor); tft.fillRect(x + 3, y - 15, 2, 3, iColor); tft.fillRect(x + 4, y - 12, 2, 3, iColor); tft.fillRect(x + 5, y - 9, 2, 4, iColor); tft.fillRect(x + 6, y - 6, 2, 4, iColor); tft.fillRect(x + 7, y - 2, 3, 3, iColor); tft.fillRect(x + 9, y - 6, 2, 4, iColor); tft.fillRect(x + 10, y - 9, 2, 4, iColor); tft.fillRect(x + 11, y - 12, 2, 3, iColor); tft.fillRect(x + 12, y - 15, 2, 3, iColor); tft.fillRect(x + 13, y - 18, 1, 4, iColor); tft.fillRect(x + 14, y - 19, 2, 20, iColor); xPos += 18; } void MTaille2(int x, int y, int iColor) // Largeur 36. { tft.fillRect(x + 0, y - 38, 4, 40, iColor); tft.fillRect(x + 0, y - 36, 8, 6, iColor); tft.fillRect(x + 6, y - 30, 4, 6, iColor); tft.fillRect(x + 8, y - 24, 4, 6, iColor); tft.fillRect(x + 10, y - 18, 4, 8, iColor); tft.fillRect(x + 12, y - 12, 4, 8, iColor); tft.fillRect(x + 14, y - 4, 6, 6, iColor); tft.fillRect(x + 18, y - 12, 4, 8, iColor); tft.fillRect(x + 20, y - 18, 4, 8, iColor); tft.fillRect(x + 22, y - 24, 4, 6, iColor); tft.fillRect(x + 24, y - 30, 4, 6, iColor); tft.fillRect(x + 26, y - 36, 2, 8, iColor); tft.fillRect(x + 28, y - 38, 4, 40, iColor); xPos += 36; } // // : - : // : N : // : - : // void NTaille1(int x, int y, int iColor) // Largeur 18. { tft.fillRect(x + 0, y - 19, 2, 20, iColor); tft.fillRect(x + 0, y - 19, 3, 2, iColor); tft.fillRect(x + 0, y - 17, 4, 2, iColor); tft.fillRect(x + 3, y - 15, 2, 1, iColor); tft.fillRect(x + 4, y - 14, 2, 2, iColor); tft.fillRect(x + 5, y - 12, 2, 1, iColor); tft.fillRect(x + 6, y - 11, 2, 2, iColor); tft.fillRect(x + 7, y - 9, 2, 2, iColor); tft.fillRect(x + 8, y - 7, 2, 1, iColor); tft.fillRect(x + 9, y - 6, 2, 2, iColor); tft.fillRect(x + 10, y - 4, 2, 1, iColor); tft.fillRect(x + 11, y - 3, 2, 2, iColor); tft.fillRect(x + 12, y - 1, 2, 2, iColor); tft.fillRect(x + 14, y - 19, 2, 20, iColor); xPos += 18; } void NTaille2(int x, int y, int iColor) // Largeur 36. { tft.fillRect(x + 0, y - 38, 4, 40, iColor); tft.fillRect(x + 0, y - 38, 6, 4, iColor); tft.fillRect(x + 0, y - 34, 8, 4, iColor); tft.fillRect(x + 6, y - 30, 4, 2, iColor); tft.fillRect(x + 8, y - 28, 4, 4, iColor); tft.fillRect(x + 10, y - 24, 4, 2, iColor); tft.fillRect(x + 12, y - 22, 4, 4, iColor); tft.fillRect(x + 14, y - 18, 4, 4, iColor); tft.fillRect(x + 16, y - 14, 4, 2, iColor); tft.fillRect(x + 18, y - 12, 4, 4, iColor); tft.fillRect(x + 20, y - 8, 4, 2, iColor); tft.fillRect(x + 22, y - 6, 4, 4, iColor); tft.fillRect(x + 24, y - 2, 4, 4, iColor); tft.fillRect(x + 28, y - 38, 4, 40, iColor); xPos += 36; } // // : - : // : O : // : - : // void OTaille1(int x, int y, int iColor) // Largeur 21. { tft.fillRect(x + 16, y - 6, 2, 2, iColor); tft.fillRect(x + 15, y - 5, 2, 3, iColor); tft.fillRect(x + 14, y - 3, 2, 2, iColor); tft.fillRect(x + 12, y - 2, 3, 2, iColor); tft.fillRect(x + 6, y - 1, 7, 2, iColor); tft.fillRect(x + 4, y - 2, 2, 2, iColor); tft.fillRect(x + 3, y - 3, 2, 2, iColor); tft.fillRect(x + 3, y - 4, 2, 2, iColor); tft.fillRect(x + 1, y - 6, 2, 3, iColor); tft.fillRect(x + 0, y - 13, 2, 7, iColor); tft.fillRect(x + 1, y - 15, 2, 3, iColor); tft.fillRect(x + 2, y - 16, 2, 2, iColor); tft.fillRect(x + 3, y - 17, 2, 2, iColor); tft.fillRect(x + 4, y - 18, 2, 2, iColor); tft.fillRect(x + 6, y - 19, 7, 2, iColor); tft.fillRect(x + 13, y - 18, 2, 2, iColor); tft.fillRect(x + 14, y - 17, 2, 2, iColor); tft.fillRect(x + 15, y - 16, 2, 2, iColor); tft.fillRect(x + 16, y - 15, 2, 2, iColor); tft.fillRect(x + 17, y - 13, 2, 8, iColor); xPos += 21; } void OTaille2(int x, int y, int iColor) // Largeur 42. { tft.fillRect(x + 33, y - 12, 4, 4, iColor); tft.fillRect(x + 30, y - 10, 4, 6, iColor); tft.fillRect(x + 28, y - 6, 4, 4, iColor); tft.fillRect(x + 24, y - 4, 6, 4, iColor); tft.fillRect(x + 11, y - 2, 14, 4, iColor); tft.fillRect(x + 8, y - 4, 4, 4, iColor); tft.fillRect(x + 6, y - 6, 4, 4, iColor); tft.fillRect(x + 6, y - 8, 4, 4, iColor); tft.fillRect(x + 2, y - 12, 4, 6, iColor); tft.fillRect(x + 0, y - 26, 4, 14, iColor); tft.fillRect(x + 2, y - 30, 4, 6, iColor); tft.fillRect(x + 4, y - 32, 4, 4, iColor); tft.fillRect(x + 6, y - 34, 4, 4, iColor); tft.fillRect(x + 8, y - 36, 4, 4, iColor); tft.fillRect(x + 12, y - 38, 14, 4, iColor); tft.fillRect(x + 26, y - 36, 4, 4, iColor); tft.fillRect(x + 28, y - 34, 4, 4, iColor); tft.fillRect(x + 30, y - 32, 4, 4, iColor); tft.fillRect(x + 32, y - 30, 4, 4, iColor); tft.fillRect(x + 34, y - 26, 4, 16, iColor); xPos += 42; } // // : - : // : P : // : - : // void PTaille1(int x, int y, int iColor) // Largeur 16. { tft.fillRect(x + 0, y - 19, 2, 20, iColor); tft.fillRect(x + 0, y - 19, 11, 2, iColor); tft.fillRect(x + 0, y - 9, 10, 2, iColor); tft.fillRect(x + 10, y - 18, 2, 2, iColor); tft.fillRect(x + 11, y - 17, 2, 2, iColor); tft.fillRect(x + 12, y - 16, 2, 6, iColor); tft.fillRect(x + 11, y - 10, 2, 2, iColor); tft.fillRect(x + 10, y - 9, 2, 2, iColor); xPos += 16; } void PTaille2(int x, int y, int iColor) // Largeur 32. { tft.fillRect(x + 0, y - 38, 4, 40, iColor); tft.fillRect(x + 0, y - 38, 22, 4, iColor); tft.fillRect(x + 0, y - 18, 20, 4, iColor); tft.fillRect(x + 20, y - 36, 4, 4, iColor); tft.fillRect(x + 22, y - 34, 4, 4, iColor); tft.fillRect(x + 24, y - 32, 4, 12, iColor); tft.fillRect(x + 22, y - 20, 4, 4, iColor); tft.fillRect(x + 20, y - 18, 4, 4, iColor); xPos += 32; } // // : - : // : Q : // : - : // void QTaille1(int x, int y, int iColor) // Largeur 18. { tft.fillRect(x + 16, y - 6, 2, 2, iColor); tft.fillRect(x + 15, y - 5, 2, 3, iColor); tft.fillRect(x + 14, y - 3, 2, 2, iColor); tft.fillRect(x + 12, y - 2, 3, 2, iColor); tft.fillRect(x + 6, y - 1, 7, 2, iColor); tft.fillRect(x + 4, y - 2, 2, 2, iColor); tft.fillRect(x + 3, y - 3, 2, 2, iColor); tft.fillRect(x + 3, y - 4, 2, 2, iColor); tft.fillRect(x + 1, y - 6, 2, 3, iColor); tft.fillRect(x + 0, y - 13, 2, 7, iColor); tft.fillRect(x + 1, y - 15, 2, 3, iColor); tft.fillRect(x + 2, y - 16, 2, 2, iColor); tft.fillRect(x + 3, y - 17, 2, 2, iColor); tft.fillRect(x + 4, y - 18, 2, 2, iColor); tft.fillRect(x + 6, y - 19, 7, 2, iColor); tft.fillRect(x + 13, y - 18, 2, 2, iColor); tft.fillRect(x + 14, y - 17, 2, 2, iColor); tft.fillRect(x + 15, y - 16, 2, 2, iColor); tft.fillRect(x + 16, y - 15, 2, 2, iColor); tft.fillRect(x + 17, y - 13, 2, 8, iColor); tft.fillRect(x + 10, y - 4, 3, 2, iColor); tft.fillRect(x + 12, y - 3, 5, 3, iColor); tft.fillRect(x + 16, y + 0, 2, 2, iColor); tft.fillRect(x + 17, y + 1, 2, 2, iColor); xPos += 18; } void QTaille2(int x, int y, int iColor) // Largeur 36. { tft.fillRect(x + 33, y - 12, 4, 4, iColor); tft.fillRect(x + 30, y - 10, 4, 6, iColor); tft.fillRect(x + 28, y - 6, 4, 4, iColor); tft.fillRect(x + 24, y - 4, 6, 4, iColor); tft.fillRect(x + 11, y - 2, 14, 4, iColor); tft.fillRect(x + 8, y - 4, 4, 4, iColor); tft.fillRect(x + 6, y - 6, 4, 4, iColor); tft.fillRect(x + 6, y - 8, 4, 4, iColor); tft.fillRect(x + 2, y - 12, 4, 6, iColor); tft.fillRect(x + 0, y - 26, 4, 14, iColor); tft.fillRect(x + 2, y - 30, 4, 6, iColor); tft.fillRect(x + 4, y - 32, 4, 4, iColor); tft.fillRect(x + 6, y - 34, 4, 4, iColor); tft.fillRect(x + 8, y - 36, 4, 4, iColor); tft.fillRect(x + 12, y - 38, 14, 4, iColor); tft.fillRect(x + 26, y - 36, 4, 4, iColor); tft.fillRect(x + 28, y - 34, 4, 4, iColor); tft.fillRect(x + 30, y - 32, 4, 4, iColor); tft.fillRect(x + 32, y - 30, 4, 4, iColor); tft.fillRect(x + 34, y - 26, 4, 16, iColor); tft.fillRect(x + 20, y - 8, 6, 4, iColor); tft.fillRect(x + 24, y - 6, 10, 6, iColor); tft.fillRect(x + 32, y + 0, 4, 4, iColor); tft.fillRect(x + 34, y + 2, 4, 4, iColor); xPos += 36; } // // : - : // : R : // : - : // void RTaille1(int x, int y, int iColor) // Largeur 16. { tft.fillRect(x + 0, y - 19, 2, 20, iColor); tft.fillRect(x + 0, y - 19, 11, 2, iColor); tft.fillRect(x + 0, y - 9, 10, 2, iColor); tft.fillRect(x + 10, y - 18, 2, 2, iColor); tft.fillRect(x + 11, y - 17, 2, 2, iColor); tft.fillRect(x + 12, y - 16, 2, 6, iColor); tft.fillRect(x + 11, y - 10, 2, 2, iColor); tft.fillRect(x + 10, y - 9, 2, 2, iColor); tft.fillRect(x + 8, y - 8, 3, 1, iColor); tft.fillRect(x + 9, y - 7, 2, 1, iColor); tft.fillRect(x + 10, y - 6, 2, 1, iColor); tft.fillRect(x + 10, y - 5, 3, 1, iColor); tft.fillRect(x + 11, y - 4, 3, 1, iColor); tft.fillRect(x + 12, y - 3, 2, 1, iColor); tft.fillRect(x + 13, y - 2, 2, 1, iColor); tft.fillRect(x + 13, y - 1, 3, 1, iColor); tft.fillRect(x + 14, y - 0, 2, 1, iColor); xPos += 16; } void RTaille2(int x, int y, int iColor) // Largeur 32. { tft.fillRect(x + 0, y - 38, 4, 40, iColor); tft.fillRect(x + 0, y - 38, 22, 4, iColor); tft.fillRect(x + 0, y - 18, 20, 4, iColor); tft.fillRect(x + 20, y - 36, 4, 4, iColor); tft.fillRect(x + 22, y - 34, 4, 4, iColor); tft.fillRect(x + 24, y - 32, 4, 12, iColor); tft.fillRect(x + 22, y - 20, 4, 4, iColor); tft.fillRect(x + 20, y - 18, 4, 4, iColor); tft.fillRect(x + 0, y - 38, 4, 40, iColor); tft.fillRect(x + 0, y - 38, 22, 4, iColor); tft.fillRect(x + 0, y - 18, 20, 4, iColor); tft.fillRect(x + 20, y - 36, 4, 4, iColor); tft.fillRect(x + 22, y - 34, 4, 4, iColor); tft.fillRect(x + 24, y - 32, 4, 12, iColor); tft.fillRect(x + 22, y - 20, 4, 4, iColor); tft.fillRect(x + 20, y - 18, 4, 4, iColor); tft.fillRect(x + 16, y - 16, 6, 2, iColor); tft.fillRect(x + 18, y - 14, 4, 2, iColor); tft.fillRect(x + 20, y - 12, 4, 2, iColor); tft.fillRect(x + 20, y - 10, 6, 2, iColor); tft.fillRect(x + 22, y - 8, 6, 2, iColor); tft.fillRect(x + 24, y - 6, 4, 2, iColor); tft.fillRect(x + 26, y - 4, 4, 2, iColor); tft.fillRect(x + 26, y - 2, 6, 2, iColor); tft.fillRect(x + 28, y - 0, 4, 2, iColor); xPos += 32; } // // : - : // : S : // : - : // void STaille1(int x, int y, int iColor) // Largeur 18. { tft.fillRect(x + 0, y - 6, 2, 3, iColor); tft.fillRect(x + 1, y - 4, 2, 2, iColor); tft.fillRect(x + 2, y - 3, 2, 2, iColor); tft.fillRect(x + 3, y - 2, 2, 2, iColor); tft.fillRect(x + 5, y - 1, 7, 2, iColor); tft.fillRect(x + 12, y - 2, 2, 2, iColor); tft.fillRect(x + 13, y - 3, 2, 2, iColor); tft.fillRect(x + 14, y - 7, 2, 4, iColor); tft.fillRect(x + 13, y - 7, 3, 1, iColor); tft.fillRect(x + 11, y - 8, 4, 1, iColor); tft.fillRect(x + 7, y - 9, 7, 1, iColor); tft.fillRect(x + 4, y - 10, 9, 1, iColor); tft.fillRect(x + 2, y - 11, 8, 1, iColor); tft.fillRect(x + 1, y - 12, 3, 1, iColor); tft.fillRect(x + 1, y - 16, 2, 4, iColor); tft.fillRect(x + 2, y - 17, 2, 6, iColor); tft.fillRect(x + 3, y - 18, 2, 2, iColor); tft.fillRect(x + 5, y - 19, 8, 2, iColor); tft.fillRect(x + 13, y - 18, 2, 2, iColor); tft.fillRect(x + 14, y - 16, 2, 2, iColor); xPos += 18; } void STaille2(int x, int y, int iColor) // Largeur 36. { tft.fillRect(x + 0, y - 12, 4, 6, iColor); tft.fillRect(x + 2, y - 8, 4, 4, iColor); tft.fillRect(x + 4, y - 6, 4, 4, iColor); tft.fillRect(x + 6, y - 4, 4, 4, iColor); tft.fillRect(x + 10, y - 2, 18, 4, iColor); tft.fillRect(x + 26, y - 6, 4, 4, iColor); tft.fillRect(x + 28, y - 14, 4, 8, iColor); tft.fillRect(x + 26, y - 14, 6, 2, iColor); tft.fillRect(x + 22, y - 16, 8, 2, iColor); tft.fillRect(x + 14, y - 18, 14, 2, iColor); tft.fillRect(x + 8, y - 20, 18, 2, iColor); tft.fillRect(x + 4, y - 22, 16, 2, iColor); tft.fillRect(x + 2, y - 24, 6, 2, iColor); tft.fillRect(x + 2, y - 32, 4, 8, iColor); tft.fillRect(x + 4, y - 34, 4, 12, iColor); tft.fillRect(x + 6, y - 36, 4, 4, iColor); tft.fillRect(x + 10, y - 38, 16, 4, iColor); tft.fillRect(x + 26, y - 36, 4, 4, iColor); tft.fillRect(x + 28, y - 32, 4, 4, iColor); xPos += 36; } // // : - : // : T : // : - : // void TTaille1(int x, int y, int iColor) // Largeur 16. { tft.fillRect(x + 0, y - 19, 14, 2, iColor); tft.fillRect(x + 6, y - 19, 2, 20, iColor); xPos += 16; } void TTaille2(int x, int y, int iColor) // Largeur 32. { tft.fillRect(x + 0, y - 38, 28, 4, iColor); tft.fillRect(x + 12, y - 38, 4, 40, iColor); xPos += 32; } // // : - : // : U : // : - : // void UTaille1(int x, int y, int iColor) // Largeur 17. { tft.fillRect(x + 0, y - 19, 2, 16, iColor); tft.fillRect(x + 1, y - 4, 2, 3, iColor); tft.fillRect(x + 2, y - 2, 3, 2, iColor); tft.fillRect(x + 4, y - 1, 7, 2, iColor); tft.fillRect(x + 10, y - 2, 3, 2, iColor); tft.fillRect(x + 12, y - 4, 2, 3, iColor); tft.fillRect(x + 13, y - 19, 2, 16, iColor); xPos += 17; } void UTaille2(int x, int y, int iColor) // Largeur 34. { tft.fillRect(x + 0, y - 38, 4, 32, iColor); tft.fillRect(x + 2, y - 8, 4, 6, iColor); tft.fillRect(x + 4, y - 4, 6, 4, iColor); tft.fillRect(x + 8, y - 2, 14, 4, iColor); tft.fillRect(x + 20, y - 4, 6, 4, iColor); tft.fillRect(x + 24, y - 8, 4, 6, iColor); tft.fillRect(x + 26, y - 38, 4, 32, iColor); xPos += 34; } // // : - : // : V : // : - : // void VTaille1(int x, int y, int iColor) // Largeur 19. { tft.fillRect(x + 0, y - 19, 2, 2, iColor); tft.fillRect(x + 1, y - 18, 2, 4, iColor); tft.fillRect(x + 2, y - 15, 2, 3, iColor); tft.fillRect(x + 3, y - 12, 2, 3, iColor); tft.fillRect(x + 4, y - 10, 2, 4, iColor); tft.fillRect(x + 5, y - 7, 2, 3, iColor); tft.fillRect(x + 6, y - 4, 2, 3, iColor); tft.fillRect(x + 7, y - 2, 3, 3, iColor); tft.fillRect(x + 9, y - 4, 2, 3, iColor); tft.fillRect(x + 10, y - 7, 2, 3, iColor); tft.fillRect(x + 11, y - 10, 2, 4, iColor); tft.fillRect(x + 12, y - 12, 2, 3, iColor); tft.fillRect(x + 13, y - 15, 2, 3, iColor); tft.fillRect(x + 14, y - 18, 2, 4, iColor); tft.fillRect(x + 15, y - 19, 2, 2, iColor); xPos += 19; } void VTaille2(int x, int y, int iColor) // Largeur 38. { tft.fillRect(x + 0, y - 38, 4, 4, iColor); tft.fillRect(x + 2, y - 36, 4, 8, iColor); tft.fillRect(x + 4, y - 30, 4, 6, iColor); tft.fillRect(x + 6, y - 24, 4, 6, iColor); tft.fillRect(x + 8, y - 20, 4, 8, iColor); tft.fillRect(x + 10, y - 14, 4, 6, iColor); tft.fillRect(x + 12, y - 8, 4, 6, iColor); tft.fillRect(x + 14, y - 4, 6, 6, iColor); tft.fillRect(x + 18, y - 8, 4, 6, iColor); tft.fillRect(x + 20, y - 14, 4, 6, iColor); tft.fillRect(x + 22, y - 20, 4, 8, iColor); tft.fillRect(x + 24, y - 24, 4, 6, iColor); tft.fillRect(x + 26, y - 30, 4, 6, iColor); tft.fillRect(x + 28, y - 36, 4, 8, iColor); tft.fillRect(x + 30, y - 38, 4, 4, iColor); xPos += 38; } // // : - : // : W : // : - : // void WTaille1(int x, int y, int iColor) // Largeur 28. { tft.fillRect(x + 0, y - 19, 2, 2, iColor); tft.fillRect(x + 1, y - 17, 2, 4, iColor); tft.fillRect(x + 2, y - 13, 2, 4, iColor); tft.fillRect(x + 3, y - 10, 2, 5, iColor); tft.fillRect(x + 4, y - 6, 2, 4, iColor); tft.fillRect(x + 5, y - 2, 3, 3, iColor); tft.fillRect(x + 7, y - 6, 2, 4, iColor); tft.fillRect(x + 8, y - 10, 2, 4, iColor); tft.fillRect(x + 9, y - 14, 2, 4, iColor); tft.fillRect(x + 10, y - 17, 2, 3, iColor); tft.fillRect(x + 11, y - 19, 3, 2, iColor); tft.fillRect(x + 13, y - 19, 2, 2, iColor); tft.fillRect(x + 14, y - 17, 2, 4, iColor); tft.fillRect(x + 15, y - 13, 2, 4, iColor); tft.fillRect(x + 16, y - 10, 2, 5, iColor); tft.fillRect(x + 17, y - 6, 2, 4, iColor); tft.fillRect(x + 18, y - 2, 3, 3, iColor); tft.fillRect(x + 20, y - 6, 2, 4, iColor); tft.fillRect(x + 21, y - 10, 2, 4, iColor); tft.fillRect(x + 22, y - 14, 2, 4, iColor); tft.fillRect(x + 23, y - 17, 2, 3, iColor); tft.fillRect(x + 24, y - 19, 2, 2, iColor); xPos += 28; } void WTaille2(int x, int y, int iColor) // Largeur 56. { tft.fillRect(x + 0, y - 38, 4, 4, iColor); tft.fillRect(x + 2, y - 34, 4, 8, iColor); tft.fillRect(x + 4, y - 26, 4, 8, iColor); tft.fillRect(x + 6, y - 20, 4, 10, iColor); tft.fillRect(x + 8, y - 12, 4, 8, iColor); tft.fillRect(x + 10, y - 4, 6, 6, iColor); tft.fillRect(x + 14, y - 12, 4, 8, iColor); tft.fillRect(x + 16, y - 20, 4, 8, iColor); tft.fillRect(x + 18, y - 28, 4, 8, iColor); tft.fillRect(x + 20, y - 34, 4, 6, iColor); tft.fillRect(x + 22, y - 38, 6, 4, iColor); tft.fillRect(x + 26, y - 38, 4, 4, iColor); tft.fillRect(x + 28, y - 34, 4, 8, iColor); tft.fillRect(x + 30, y - 26, 4, 8, iColor); tft.fillRect(x + 32, y - 20, 4, 10, iColor); tft.fillRect(x + 34, y - 12, 4, 8, iColor); tft.fillRect(x + 36, y - 4, 6, 6, iColor); tft.fillRect(x + 40, y - 12, 4, 8, iColor); tft.fillRect(x + 42, y - 20, 4, 8, iColor); tft.fillRect(x + 44, y - 28, 4, 8, iColor); tft.fillRect(x + 46, y - 34, 4, 6, iColor); tft.fillRect(x + 48, y - 38, 4, 4, iColor); xPos += 56; } // // : - : // : X : // : - : // void XTaille1(int x, int y, int iColor) // Largeur 19. { tft.fillRect(x + 0, y - 0, 3, 1, iColor); tft.fillRect(x + 1, y - 1, 3, 1, iColor); tft.fillRect(x + 2, y - 3, 3, 2, iColor); tft.fillRect(x + 3, y - 4, 3, 1, iColor); tft.fillRect(x + 4, y - 6, 3, 2, iColor); tft.fillRect(x + 5, y - 7, 3, 1, iColor); tft.fillRect(x + 6, y - 8, 2, 1, iColor); tft.fillRect(x + 7, y - 11, 4, 3, iColor); tft.fillRect(x + 6, y - 12, 2, 1, iColor); tft.fillRect(x + 5, y - 14, 3, 2, iColor); tft.fillRect(x + 4, y - 15, 3, 1, iColor); tft.fillRect(x + 3, y - 16, 3, 1, iColor); tft.fillRect(x + 3, y - 17, 2, 1, iColor); tft.fillRect(x + 2, y - 18, 3, 1, iColor); tft.fillRect(x + 1, y - 19, 3, 1, iColor); tft.fillRect(x + 14, y - 0, 3, 1, iColor); tft.fillRect(x + 13, y - 1, 3, 1, iColor); tft.fillRect(x + 13, y - 3, 2, 3, iColor); tft.fillRect(x + 12, y - 3, 3, 1, iColor); tft.fillRect(x + 11, y - 4, 3, 1, iColor); tft.fillRect(x + 10, y - 6, 3, 2, iColor); tft.fillRect(x + 9, y - 7, 3, 1, iColor); tft.fillRect(x + 9, y - 8, 2, 1, iColor); tft.fillRect(x + 9, y - 12, 2, 1, iColor); tft.fillRect(x + 9, y - 13, 3, 2, iColor); tft.fillRect(x + 10, y - 14, 3, 1, iColor); tft.fillRect(x + 11, y - 15, 3, 1, iColor); tft.fillRect(x + 12, y - 16, 3, 1, iColor); tft.fillRect(x + 13, y - 17, 2, 1, iColor); tft.fillRect(x + 13, y - 18, 3, 1, iColor); tft.fillRect(x + 14, y - 19, 3, 1, iColor); xPos += 19; } void XTaille2(int x, int y, int iColor) // Largeur 38. { tft.fillRect(x + 0, y - 0, 6, 2, iColor); tft.fillRect(x + 2, y - 2, 6, 2, iColor); tft.fillRect(x + 4, y - 6, 6, 4, iColor); tft.fillRect(x + 6, y - 8, 6, 2, iColor); tft.fillRect(x + 8, y - 12, 6, 4, iColor); tft.fillRect(x + 10, y - 14, 6, 2, iColor); tft.fillRect(x + 12, y - 16, 4, 2, iColor); tft.fillRect(x + 14, y - 22, 8, 6, iColor); tft.fillRect(x + 12, y - 24, 4, 2, iColor); tft.fillRect(x + 10, y - 28, 6, 4, iColor); tft.fillRect(x + 8, y - 30, 6, 2, iColor); tft.fillRect(x + 6, y - 32, 6, 2, iColor); tft.fillRect(x + 6, y - 34, 4, 2, iColor); tft.fillRect(x + 4, y - 36, 6, 2, iColor); tft.fillRect(x + 2, y - 38, 6, 2, iColor); tft.fillRect(x + 28, y - 0, 6, 2, iColor); tft.fillRect(x + 26, y - 2, 6, 2, iColor); tft.fillRect(x + 26, y - 6, 4, 6, iColor); tft.fillRect(x + 24, y - 6, 6, 2, iColor); tft.fillRect(x + 22, y - 8, 6, 2, iColor); tft.fillRect(x + 20, y - 12, 6, 4, iColor); tft.fillRect(x + 18, y - 14, 6, 2, iColor); tft.fillRect(x + 18, y - 16, 4, 2, iColor); tft.fillRect(x + 18, y - 24, 4, 2, iColor); tft.fillRect(x + 18, y - 26, 6, 4, iColor); tft.fillRect(x + 20, y - 28, 6, 2, iColor); tft.fillRect(x + 22, y - 30, 6, 2, iColor); tft.fillRect(x + 24, y - 32, 6, 2, iColor); tft.fillRect(x + 26, y - 34, 4, 2, iColor); tft.fillRect(x + 26, y - 36, 6, 2, iColor); tft.fillRect(x + 28, y - 38, 6, 2, iColor); xPos += 38; } // // : - : // : Y : // : - : // void YTaille1(int x, int y, int iColor) // Largeur 19. { tft.fillRect(x + 0, y - 19, 2, 1, iColor); tft.fillRect(x + 1, y - 18, 2, 1, iColor); tft.fillRect(x + 2, y - 17, 2, 2, iColor); tft.fillRect(x + 3, y - 15, 2, 2, iColor); tft.fillRect(x + 4, y - 13, 3, 1, iColor); tft.fillRect(x + 5, y - 12, 2, 2, iColor); tft.fillRect(x + 6, y - 10, 4, 2, iColor); tft.fillRect(x + 7, y - 8, 2, 9, iColor); tft.fillRect(x + 9, y - 12, 2, 2, iColor); tft.fillRect(x + 9, y - 13, 3, 1, iColor); tft.fillRect(x + 10, y - 14, 3, 1, iColor); tft.fillRect(x + 11, y - 15, 2, 1, iColor); tft.fillRect(x + 11, y - 16, 3, 1, iColor); tft.fillRect(x + 12, y - 17, 2, 1, iColor); tft.fillRect(x + 12, y - 18, 3, 1, iColor); tft.fillRect(x + 13, y - 19, 3, 1, iColor); xPos += 19; } void YTaille2(int x, int y, int iColor) // Largeur 38. { tft.fillRect(x + 0, y - 38, 4, 2, iColor); tft.fillRect(x + 2, y - 36, 4, 2, iColor); tft.fillRect(x + 4, y - 34, 4, 4, iColor); tft.fillRect(x + 6, y - 30, 4, 4, iColor); tft.fillRect(x + 8, y - 26, 6, 2, iColor); tft.fillRect(x + 10, y - 24, 4, 4, iColor); tft.fillRect(x + 12, y - 20, 8, 4, iColor); tft.fillRect(x + 14, y - 16, 4, 18, iColor); tft.fillRect(x + 18, y - 24, 4, 4, iColor); tft.fillRect(x + 18, y - 26, 6, 2, iColor); tft.fillRect(x + 20, y - 28, 6, 2, iColor); tft.fillRect(x + 22, y - 30, 4, 2, iColor); tft.fillRect(x + 22, y - 32, 6, 2, iColor); tft.fillRect(x + 24, y - 34, 4, 2, iColor); tft.fillRect(x + 24, y - 36, 6, 2, iColor); tft.fillRect(x + 26, y - 38, 6, 2, iColor); xPos += 38; } // // : - : // : Z : // : - : // void ZTaille1(int x, int y, int iColor) // Largeur 18. { tft.fillRect(x + 0, y - 19, 15, 2, iColor); tft.fillRect(x + 0, y - 1, 15, 2, iColor); tft.fillRect(x + 1, y - 2, 2, 1, iColor); tft.fillRect(x + 2, y - 3, 2, 1, iColor); tft.fillRect(x + 2, y - 4, 3, 1, iColor); tft.fillRect(x + 3, y - 5, 3, 1, iColor); tft.fillRect(x + 4, y - 6, 2, 1, iColor); tft.fillRect(x + 5, y - 7, 2, 1, iColor); tft.fillRect(x + 6, y - 8, 2, 1, iColor); tft.fillRect(x + 6, y - 9, 3, 1, iColor); tft.fillRect(x + 7, y - 10, 3, 1, iColor); tft.fillRect(x + 8, y - 11, 2, 1, iColor); tft.fillRect(x + 9, y - 12, 2, 1, iColor); tft.fillRect(x + 9, y - 13, 3, 1, iColor); tft.fillRect(x + 10, y - 14, 3, 1, iColor); tft.fillRect(x + 11, y - 15, 2, 1, iColor); tft.fillRect(x + 12, y - 16, 2, 1, iColor); tft.fillRect(x + 13, y - 17, 2, 1, iColor); xPos += 18; } void ZTaille2(int x, int y, int iColor) // Largeur 36. { tft.fillRect(x + 0, y - 38, 30, 4, iColor); tft.fillRect(x + 0, y - 2, 30, 4, iColor); tft.fillRect(x + 2, y - 4, 4, 2, iColor); tft.fillRect(x + 4, y - 6, 4, 2, iColor); tft.fillRect(x + 4, y - 8, 6, 2, iColor); tft.fillRect(x + 6, y - 10, 6, 2, iColor); tft.fillRect(x + 8, y - 12, 4, 2, iColor); tft.fillRect(x + 10, y - 14, 4, 2, iColor); tft.fillRect(x + 12, y - 16, 4, 2, iColor); tft.fillRect(x + 12, y - 18, 6, 2, iColor); tft.fillRect(x + 14, y - 20, 6, 2, iColor); tft.fillRect(x + 16, y - 22, 4, 2, iColor); tft.fillRect(x + 18, y - 24, 4, 2, iColor); tft.fillRect(x + 18, y - 26, 6, 2, iColor); tft.fillRect(x + 20, y - 28, 6, 2, iColor); tft.fillRect(x + 22, y - 30, 4, 2, iColor); tft.fillRect(x + 24, y - 32, 4, 2, iColor); tft.fillRect(x + 26, y - 34, 4, 2, iColor); xPos += 36; } // // : ------------ : // : LES CHIFFRES : // : ------------ : // void LedTaille1Vierge(int x, int y) { tft.fillRect(x + 2, y - 26, 11, 1, FONDLED); // A tft.fillRect(x + 1, y - 25, 13, 1, FONDLED); tft.fillRect(x + 2, y - 24, 11, 1, FONDLED); tft.fillRect(x + 12, y - 22, 1, 7, FONDLED); // B tft.fillRect(x + 13, y - 23, 1, 9, FONDLED); tft.fillRect(x + 14, y - 24, 1, 11, FONDLED); tft.fillRect(x + 12, y - 10, 1, 7, FONDLED); // C tft.fillRect(x + 13, y - 11, 1, 9, FONDLED); tft.fillRect(x + 14, y - 12, 1, 11, FONDLED); tft.fillRect(x + 2, y - 0, 11, 1, FONDLED); // D tft.fillRect(x + 1, y - 1, 13, 1, FONDLED); tft.fillRect(x + 2, y - 2, 11, 1, FONDLED); tft.fillRect(x + 0, y - 12, 1, 11, FONDLED); // E tft.fillRect(x + 1, y - 11, 1, 9, FONDLED); tft.fillRect(x + 2, y - 10, 1, 7, FONDLED); tft.fillRect(x + 0, y - 24, 1, 11, FONDLED); // F tft.fillRect(x + 1, y - 23, 1, 9, FONDLED); tft.fillRect(x + 2, y - 22, 1, 7, FONDLED); tft.fillRect(x + 2, y - 14, 11, 1, FONDLED); // G tft.fillRect(x + 1, y - 13, 13, 1, FONDLED); tft.fillRect(x + 2, y - 12, 11, 1, FONDLED); } void LedTaille2Vierge(int x, int y) { tft.fillRect(x + 4, y - 52, 22, 2, FONDLED); // A tft.fillRect(x + 2, y - 50, 26, 2, FONDLED); tft.fillRect(x + 4, y - 48, 22, 2, FONDLED); tft.fillRect(x + 24, y - 44, 2, 14, FONDLED); // B tft.fillRect(x + 26, y - 46, 2, 18, FONDLED); tft.fillRect(x + 28, y - 48, 2, 22, FONDLED); tft.fillRect(x + 24, y - 20, 2, 14, FONDLED); // C tft.fillRect(x + 26, y - 22, 2, 18, FONDLED); tft.fillRect(x + 28, y - 24, 2, 22, FONDLED); tft.fillRect(x + 4, y - 0, 22, 2, FONDLED); // D tft.fillRect(x + 2, y - 2, 26, 2, FONDLED); tft.fillRect(x + 4, y - 4, 22, 2, FONDLED); tft.fillRect(x + 0, y - 24, 2, 22, FONDLED); // E tft.fillRect(x + 2, y - 22, 2, 18, FONDLED); tft.fillRect(x + 4, y - 20, 2, 14, FONDLED); tft.fillRect(x + 0, y - 48, 2, 22, FONDLED); // F tft.fillRect(x + 2, y - 46, 2, 18, FONDLED); tft.fillRect(x + 4, y - 44, 2, 14, FONDLED); tft.fillRect(x + 4, y - 28, 22, 2, FONDLED); // G tft.fillRect(x + 2, y - 26, 26, 2, FONDLED); tft.fillRect(x + 4, y - 24, 22, 2, FONDLED); } void LedTaille3Vierge(int x, int y) { tft.fillRect(x + 8, y - 104, 44, 4, FONDLED); // A tft.fillRect(x + 4, y - 100, 52, 4, FONDLED); tft.fillRect(x + 8, y - 96, 44, 4, FONDLED); tft.fillRect(x + 48, y - 88, 4, 28, FONDLED); // B tft.fillRect(x + 52, y - 92, 4, 36, FONDLED); tft.fillRect(x + 56, y - 96, 4, 44, FONDLED); tft.fillRect(x + 48, y - 40, 4, 28, FONDLED); // C tft.fillRect(x + 52, y - 44, 4, 36, FONDLED); tft.fillRect(x + 56, y - 48, 4, 44, FONDLED); tft.fillRect(x + 8, y - 0, 44, 4, FONDLED); // D tft.fillRect(x + 4, y - 4, 52, 4, FONDLED); tft.fillRect(x + 8, y - 8, 44, 4, FONDLED); tft.fillRect(x + 0, y - 48, 4, 44, FONDLED); // E tft.fillRect(x + 4, y - 44, 4, 36, FONDLED); tft.fillRect(x + 8, y - 40, 4, 28, FONDLED); tft.fillRect(x + 0, y - 96, 4, 44, FONDLED); // F tft.fillRect(x + 4, y - 92, 4, 36, FONDLED); tft.fillRect(x + 8, y - 88, 4, 28, FONDLED); tft.fillRect(x + 8, y - 56, 44, 4, FONDLED); // G tft.fillRect(x + 4, y - 52, 52, 4, FONDLED); tft.fillRect(x + 8, y - 48, 44, 4, FONDLED); } // // : --- : // : 1 : // : --- : // void Led1Taille2(int x, int y, int iColor) { tft.fillRect(x + 4, y - 52, 22, 2, FONDLED); // A tft.fillRect(x + 2, y - 50, 26, 2, FONDLED); tft.fillRect(x + 4, y - 48, 22, 2, FONDLED); tft.fillRect(x + 24, y - 44, 2, 14, iColor); // B tft.fillRect(x + 26, y - 46, 2, 18, iColor); tft.fillRect(x + 28, y - 48, 2, 22, iColor); tft.fillRect(x + 24, y - 20, 2, 14, iColor); // C tft.fillRect(x + 26, y - 22, 2, 18, iColor); tft.fillRect(x + 28, y - 24, 1, 22, iColor); tft.fillRect(x + 4, y - 0, 22, 2, FONDLED); // D tft.fillRect(x + 2, y - 2, 26, 2, FONDLED); tft.fillRect(x + 4, y - 4, 22, 2, FONDLED); tft.fillRect(x + 0, y - 24, 2, 22, FONDLED); // E tft.fillRect(x + 2, y - 22, 2, 18, FONDLED); tft.fillRect(x + 4, y - 20, 2, 14, FONDLED); tft.fillRect(x + 0, y - 48, 2, 22, FONDLED); // F tft.fillRect(x + 2, y - 46, 2, 18, FONDLED); tft.fillRect(x + 4, y - 44, 2, 14, FONDLED); tft.fillRect(x + 4, y - 28, 22, 2, FONDLED); // G tft.fillRect(x + 2, y - 26, 26, 2, FONDLED); tft.fillRect(x + 4, y - 24, 22, 2, FONDLED); } void Led1Taille3(int x, int y, int iColor) { tft.fillRect(x + 8, y - 104, 44, 4, FONDLED); // A tft.fillRect(x + 4, y - 100, 52, 4, FONDLED); tft.fillRect(x + 8, y - 96, 44, 4, FONDLED); tft.fillRect(x + 48, y - 88, 4, 28, iColor); // B tft.fillRect(x + 52, y - 92, 4, 36, iColor); tft.fillRect(x + 56, y - 96, 4, 44, iColor); tft.fillRect(x + 48, y - 40, 4, 28, iColor); // C tft.fillRect(x + 52, y - 44, 4, 36, iColor); tft.fillRect(x + 56, y - 48, 4, 44, iColor); tft.fillRect(x + 8, y - 0, 44, 4, FONDLED); // D tft.fillRect(x + 4, y - 4, 52, 4, FONDLED); tft.fillRect(x + 8, y - 8, 44, 4, FONDLED); tft.fillRect(x + 0, y - 48, 4, 44, FONDLED); // E tft.fillRect(x + 4, y - 44, 4, 36, FONDLED); tft.fillRect(x + 8, y - 40, 4, 28, FONDLED); tft.fillRect(x + 0, y - 96, 4, 44, FONDLED); // F tft.fillRect(x + 4, y - 92, 4, 36, FONDLED); tft.fillRect(x + 8, y - 88, 4, 28, FONDLED); tft.fillRect(x + 8, y - 56, 44, 4, FONDLED); // G tft.fillRect(x + 4, y - 52, 52, 4, FONDLED); tft.fillRect(x + 8, y - 48, 44, 4, FONDLED); } // // : --- : // : 2 : // : --- : // void Led2Taille2(int x, int y, int iColor) { tft.fillRect(x + 4, y - 52, 22, 2, iColor); // A tft.fillRect(x + 2, y - 50, 26, 2, iColor); tft.fillRect(x + 4, y - 48, 22, 2, iColor); tft.fillRect(x + 24, y - 44, 2, 14, iColor); // B tft.fillRect(x + 26, y - 46, 2, 18, iColor); tft.fillRect(x + 28, y - 48, 2, 22, iColor); tft.fillRect(x + 24, y - 20, 2, 14, FONDLED); // C tft.fillRect(x + 26, y - 22, 2, 18, FONDLED); tft.fillRect(x + 28, y - 24, 2, 22, FONDLED); tft.fillRect(x + 4, y - 0, 22, 2, iColor); // D tft.fillRect(x + 2, y - 2, 26, 2, iColor); tft.fillRect(x + 4, y - 4, 22, 2, iColor); tft.fillRect(x + 0, y - 24, 2, 22, iColor); // E tft.fillRect(x + 2, y - 22, 2, 18, iColor); tft.fillRect(x + 4, y - 20, 2, 14, iColor); tft.fillRect(x + 0, y - 48, 2, 22, FONDLED); // F tft.fillRect(x + 2, y - 46, 2, 18, FONDLED); tft.fillRect(x + 4, y - 44, 2, 14, FONDLED); tft.fillRect(x + 4, y - 28, 22, 2, iColor); // G tft.fillRect(x + 2, y - 26, 26, 2, iColor); tft.fillRect(x + 4, y - 24, 22, 2, iColor); } void Led2Taille3(int x, int y, int iColor) { tft.fillRect(x + 8, y - 104, 44, 4, iColor); // A tft.fillRect(x + 4, y - 100, 52, 4, iColor); tft.fillRect(x + 8, y - 96, 44, 4, iColor); tft.fillRect(x + 48, y - 88, 4, 28, iColor); // B tft.fillRect(x + 52, y - 92, 4, 36, iColor); tft.fillRect(x + 56, y - 96, 4, 44, iColor); tft.fillRect(x + 48, y - 40, 4, 28, FONDLED); // C tft.fillRect(x + 52, y - 44, 4, 36, FONDLED); tft.fillRect(x + 56, y - 48, 4, 44, FONDLED); tft.fillRect(x + 8, y - 0, 44, 4, iColor); // D tft.fillRect(x + 4, y - 4, 52, 4, iColor); tft.fillRect(x + 8, y - 8, 44, 4, iColor); tft.fillRect(x + 0, y - 48, 4, 44, iColor); // E tft.fillRect(x + 4, y - 44, 4, 36, iColor); tft.fillRect(x + 8, y - 40, 4, 28, iColor); tft.fillRect(x + 0, y - 96, 4, 44, FONDLED); // F tft.fillRect(x + 4, y - 92, 4, 36, FONDLED); tft.fillRect(x + 8, y - 88, 4, 28, FONDLED); tft.fillRect(x + 8, y - 56, 44, 4, iColor); // G tft.fillRect(x + 4, y - 52, 52, 4, iColor); tft.fillRect(x + 8, y - 48, 44, 4, iColor); } // // : --- : // : 3 : // : --- : // void Led3Taille2(int x, int y, int iColor) { tft.fillRect(x + 4, y - 52, 22, 2, iColor); // A tft.fillRect(x + 2, y - 50, 26, 2, iColor); tft.fillRect(x + 4, y - 48, 22, 2, iColor); tft.fillRect(x + 24, y - 44, 2, 14, iColor); // B tft.fillRect(x + 26, y - 46, 2, 18, iColor); tft.fillRect(x + 28, y - 48, 2, 22, iColor); tft.fillRect(x + 24, y - 20, 2, 14, iColor); // C tft.fillRect(x + 26, y - 22, 2, 18, iColor); tft.fillRect(x + 28, y - 24, 2, 22, iColor); tft.fillRect(x + 4, y - 0, 22, 2, iColor); // D tft.fillRect(x + 2, y - 2, 26, 2, iColor); tft.fillRect(x + 4, y - 4, 22, 2, iColor); tft.fillRect(x + 0, y - 24, 2, 22, FONDLED); // E tft.fillRect(x + 2, y - 22, 2, 18, FONDLED); tft.fillRect(x + 4, y - 20, 2, 14, FONDLED); tft.fillRect(x + 0, y - 48, 2, 22, FONDLED); // F tft.fillRect(x + 2, y - 46, 2, 18, FONDLED); tft.fillRect(x + 4, y - 44, 2, 14, FONDLED); tft.fillRect(x + 4, y - 28, 22, 2, iColor); // G tft.fillRect(x + 2, y - 26, 26, 2, iColor); tft.fillRect(x + 4, y - 24, 22, 2, iColor); } void Led3Taille3(int x, int y, int iColor) { tft.fillRect(x + 8, y - 104, 44, 4, iColor); // A tft.fillRect(x + 4, y - 100, 52, 4, iColor); tft.fillRect(x + 8, y - 96, 44, 4, iColor); tft.fillRect(x + 48, y - 88, 4, 28, iColor); // B tft.fillRect(x + 52, y - 92, 4, 36, iColor); tft.fillRect(x + 56, y - 96, 4, 44, iColor); tft.fillRect(x + 48, y - 40, 4, 28, iColor); // C tft.fillRect(x + 52, y - 44, 4, 36, iColor); tft.fillRect(x + 56, y - 48, 4, 44, iColor); tft.fillRect(x + 8, y - 0, 44, 4, iColor); // D tft.fillRect(x + 4, y - 4, 52, 4, iColor); tft.fillRect(x + 8, y - 8, 44, 4, iColor); tft.fillRect(x + 0, y - 48, 4, 44, FONDLED); // E tft.fillRect(x + 4, y - 44, 4, 36, FONDLED); tft.fillRect(x + 8, y - 40, 4, 28, FONDLED); tft.fillRect(x + 0, y - 96, 4, 44, FONDLED); // F tft.fillRect(x + 4, y - 92, 4, 36, FONDLED); tft.fillRect(x + 8, y - 88, 4, 28, FONDLED); tft.fillRect(x + 8, y - 56, 44, 4, iColor); // G tft.fillRect(x + 4, y - 52, 52, 4, iColor); tft.fillRect(x + 8, y - 48, 44, 4, iColor); } // // : --- : // : 4 : // : --- : // void Led4Taille2(int x, int y, int iColor) { tft.fillRect(x + 4, y - 52, 22, 2, FONDLED); // A tft.fillRect(x + 2, y - 50, 26, 2, FONDLED); tft.fillRect(x + 4, y - 48, 22, 2, FONDLED); tft.fillRect(x + 24, y - 44, 2, 14, iColor); // B tft.fillRect(x + 26, y - 46, 2, 18, iColor); tft.fillRect(x + 28, y - 48, 2, 22, iColor); tft.fillRect(x + 24, y - 20, 2, 14, iColor); // C tft.fillRect(x + 26, y - 22, 2, 18, iColor); tft.fillRect(x + 28, y - 24, 1, 22, iColor); tft.fillRect(x + 4, y - 0, 22, 2, FONDLED); // D tft.fillRect(x + 2, y - 2, 26, 2, FONDLED); tft.fillRect(x + 4, y - 4, 22, 2, FONDLED); tft.fillRect(x + 0, y - 24, 2, 22, FONDLED); // E tft.fillRect(x + 2, y - 22, 2, 18, FONDLED); tft.fillRect(x + 4, y - 20, 2, 14, FONDLED); tft.fillRect(x + 0, y - 48, 2, 22, iColor); // F tft.fillRect(x + 2, y - 46, 2, 18, iColor); tft.fillRect(x + 4, y - 44, 2, 14, iColor); tft.fillRect(x + 4, y - 28, 22, 2, iColor); // G tft.fillRect(x + 2, y - 26, 26, 2, iColor); tft.fillRect(x + 4, y - 24, 22, 2, iColor); } void Led4Taille3(int x, int y, int iColor) { tft.fillRect(x + 8, y - 104, 44, 4, FONDLED); // A tft.fillRect(x + 4, y - 100, 52, 4, FONDLED); tft.fillRect(x + 8, y - 96, 44, 4, FONDLED); tft.fillRect(x + 48, y - 88, 4, 28, iColor); // B tft.fillRect(x + 52, y - 92, 4, 36, iColor); tft.fillRect(x + 56, y - 96, 4, 44, iColor); tft.fillRect(x + 48, y - 40, 4, 28, iColor); // C tft.fillRect(x + 52, y - 44, 4, 36, iColor); tft.fillRect(x + 56, y - 48, 4, 44, iColor); tft.fillRect(x + 8, y - 0, 44, 4, FONDLED); // D tft.fillRect(x + 4, y - 4, 52, 4, FONDLED); tft.fillRect(x + 8, y - 8, 44, 4, FONDLED); tft.fillRect(x + 0, y - 48, 4, 44, FONDLED); // E tft.fillRect(x + 4, y - 44, 4, 36, FONDLED); tft.fillRect(x + 8, y - 40, 4, 28, FONDLED); tft.fillRect(x + 0, y - 96, 4, 44, iColor); // F tft.fillRect(x + 4, y - 92, 4, 36, iColor); tft.fillRect(x + 8, y - 88, 4, 28, iColor); tft.fillRect(x + 8, y - 56, 44, 4, iColor); // G tft.fillRect(x + 4, y - 52, 52, 4, iColor); tft.fillRect(x + 8, y - 48, 44, 4, iColor); } // // : --- : // : 5 : // : --- : // void Led5Taille2(int x, int y, int iColor) { tft.fillRect(x + 4, y - 52, 22, 2, iColor); // A tft.fillRect(x + 2, y - 50, 26, 2, iColor); tft.fillRect(x + 4, y - 48, 22, 2, iColor); tft.fillRect(x + 24, y - 44, 2, 14, FONDLED); // B tft.fillRect(x + 26, y - 46, 2, 18, FONDLED); tft.fillRect(x + 28, y - 48, 2, 22, FONDLED); tft.fillRect(x + 24, y - 20, 2, 14, iColor); // C tft.fillRect(x + 26, y - 22, 2, 18, iColor); tft.fillRect(x + 28, y - 24, 2, 22, iColor); tft.fillRect(x + 4, y - 0, 22, 2, iColor); // D tft.fillRect(x + 2, y - 2, 26, 2, iColor); tft.fillRect(x + 4, y - 4, 22, 2, iColor); tft.fillRect(x + 0, y - 24, 2, 22, FONDLED); // E tft.fillRect(x + 2, y - 22, 2, 18, FONDLED); tft.fillRect(x + 4, y - 20, 2, 14, FONDLED); tft.fillRect(x + 0, y - 48, 2, 22, iColor); // F tft.fillRect(x + 2, y - 46, 2, 18, iColor); tft.fillRect(x + 4, y - 44, 2, 14, iColor); tft.fillRect(x + 4, y - 28, 22, 2, iColor); // G tft.fillRect(x + 2, y - 26, 26, 2, iColor); tft.fillRect(x + 4, y - 24, 22, 2, iColor); } void Led5Taille3(int x, int y, int iColor) { tft.fillRect(x + 8, y - 104, 44, 4, iColor); // A tft.fillRect(x + 4, y - 100, 52, 4, iColor); tft.fillRect(x + 8, y - 96, 44, 4, iColor); tft.fillRect(x + 48, y - 88, 4, 28, FONDLED); // B tft.fillRect(x + 52, y - 92, 4, 36, FONDLED); tft.fillRect(x + 56, y - 96, 4, 44, FONDLED); tft.fillRect(x + 48, y - 40, 4, 28, iColor); // C tft.fillRect(x + 52, y - 44, 4, 36, iColor); tft.fillRect(x + 56, y - 48, 4, 44, iColor); tft.fillRect(x + 8, y - 0, 44, 4, iColor); // D tft.fillRect(x + 4, y - 4, 52, 4, iColor); tft.fillRect(x + 8, y - 8, 44, 4, iColor); tft.fillRect(x + 0, y - 48, 4, 44, FONDLED); // E tft.fillRect(x + 4, y - 44, 4, 36, FONDLED); tft.fillRect(x + 8, y - 40, 4, 28, FONDLED); tft.fillRect(x + 0, y - 96, 4, 44, iColor); // F tft.fillRect(x + 4, y - 92, 4, 36, iColor); tft.fillRect(x + 8, y - 88, 4, 28, iColor); tft.fillRect(x + 8, y - 56, 44, 4, iColor); // G tft.fillRect(x + 4, y - 52, 52, 4, iColor); tft.fillRect(x + 8, y - 48, 44, 4, iColor); } // // : --- : // : 6 : // : --- : // void Led6Taille2(int x, int y, int iColor) { tft.fillRect(x + 4, y - 52, 22, 2, iColor); // A tft.fillRect(x + 2, y - 50, 26, 2, iColor); tft.fillRect(x + 4, y - 48, 22, 2, iColor); tft.fillRect(x + 24, y - 44, 2, 14, FONDLED); // B tft.fillRect(x + 26, y - 46, 2, 28, FONDLED); tft.fillRect(x + 28, y - 48, 2, 22, FONDLED); tft.fillRect(x + 24, y - 20, 2, 14, iColor); // C tft.fillRect(x + 26, y - 22, 2, 18, iColor); tft.fillRect(x + 28, y - 24, 2, 22, iColor); tft.fillRect(x + 4, y - 0, 22, 2, iColor); // D tft.fillRect(x + 2, y - 2, 26, 2, iColor); tft.fillRect(x + 4, y - 4, 22, 2, iColor); tft.fillRect(x + 0, y - 24, 2, 22, iColor); // E tft.fillRect(x + 2, y - 22, 2, 18, iColor); tft.fillRect(x + 4, y - 20, 2, 14, iColor); tft.fillRect(x + 0, y - 48, 2, 22, iColor); // F tft.fillRect(x + 2, y - 46, 2, 18, iColor); tft.fillRect(x + 4, y - 44, 2, 14, iColor); tft.fillRect(x + 4, y - 28, 22, 2, iColor); // G tft.fillRect(x + 2, y - 26, 26, 2, iColor); tft.fillRect(x + 4, y - 24, 22, 2, iColor); } void Led6Taille3(int x, int y, int iColor) { tft.fillRect(x + 8, y - 104, 44, 4, iColor); // A tft.fillRect(x + 4, y - 100, 52, 4, iColor); tft.fillRect(x + 8, y - 96, 44, 4, iColor); tft.fillRect(x + 48, y - 88, 4, 28, FONDLED); // B tft.fillRect(x + 52, y - 92, 4, 36, FONDLED); tft.fillRect(x + 56, y - 96, 4, 44, FONDLED); tft.fillRect(x + 48, y - 40, 4, 28, iColor); // C tft.fillRect(x + 52, y - 44, 4, 36, iColor); tft.fillRect(x + 56, y - 48, 4, 44, iColor); tft.fillRect(x + 8, y - 0, 44, 4, iColor); // D tft.fillRect(x + 4, y - 4, 52, 4, iColor); tft.fillRect(x + 8, y - 8, 44, 4, iColor); tft.fillRect(x + 0, y - 48, 4, 44, iColor); // E tft.fillRect(x + 4, y - 44, 4, 36, iColor); tft.fillRect(x + 8, y - 40, 4, 28, iColor); tft.fillRect(x + 0, y - 96, 4, 44, iColor); // F tft.fillRect(x + 4, y - 92, 4, 36, iColor); tft.fillRect(x + 8, y - 88, 4, 28, iColor); tft.fillRect(x + 8, y - 56, 44, 4, iColor); // G tft.fillRect(x + 4, y - 52, 52, 4, iColor); tft.fillRect(x + 8, y - 48, 44, 4, iColor); } // // : --- : // : 7 : // : --- : // void Led7Taille2(int x, int y, int iColor) { tft.fillRect(x + 4, y - 52, 22, 2, iColor); // A tft.fillRect(x + 2, y - 50, 26, 2, iColor); tft.fillRect(x + 4, y - 48, 22, 2, iColor); tft.fillRect(x + 24, y - 44, 2, 14, iColor); // B tft.fillRect(x + 26, y - 46, 2, 18, iColor); tft.fillRect(x + 28, y - 48, 2, 22, iColor); tft.fillRect(x + 24, y - 20, 2, 14, iColor); // C tft.fillRect(x + 26, y - 22, 2, 18, iColor); tft.fillRect(x + 28, y - 24, 2, 22, iColor); tft.fillRect(x + 4, y - 0, 22, 2, FONDLED); // D tft.fillRect(x + 2, y - 2, 26, 2, FONDLED); tft.fillRect(x + 4, y - 4, 22, 2, FONDLED); tft.fillRect(x + 0, y - 24, 2, 22, FONDLED); // E tft.fillRect(x + 2, y - 22, 2, 18, FONDLED); tft.fillRect(x + 4, y - 20, 2, 14, FONDLED); tft.fillRect(x + 0, y - 48, 2, 22, FONDLED); // F tft.fillRect(x + 2, y - 46, 2, 18, FONDLED); tft.fillRect(x + 4, y - 44, 2, 14, FONDLED); tft.fillRect(x + 4, y - 28, 22, 2, FONDLED); // G tft.fillRect(x + 2, y - 26, 26, 2, FONDLED); tft.fillRect(x + 4, y - 24, 22, 2, FONDLED); } void Led7Taille3(int x, int y, int iColor) { tft.fillRect(x + 8, y - 104, 44, 4, iColor); // A tft.fillRect(x + 4, y - 100, 52, 4, iColor); tft.fillRect(x + 8, y - 96, 44, 4, iColor); tft.fillRect(x + 48, y - 88, 4, 28, iColor); // B tft.fillRect(x + 52, y - 92, 4, 36, iColor); tft.fillRect(x + 56, y - 96, 4, 44, iColor); tft.fillRect(x + 48, y - 40, 4, 28, iColor); // C tft.fillRect(x + 52, y - 44, 4, 36, iColor); tft.fillRect(x + 56, y - 48, 4, 44, iColor); tft.fillRect(x + 8, y - 0, 44, 4, FONDLED); // D tft.fillRect(x + 4, y - 4, 52, 4, FONDLED); tft.fillRect(x + 8, y - 8, 44, 4, FONDLED); tft.fillRect(x + 0, y - 48, 4, 44, FONDLED); // E tft.fillRect(x + 4, y - 44, 4, 36, FONDLED); tft.fillRect(x + 8, y - 40, 4, 28, FONDLED); tft.fillRect(x + 0, y - 96, 4, 44, FONDLED); // F tft.fillRect(x + 4, y - 92, 4, 36, FONDLED); tft.fillRect(x + 8, y - 88, 4, 28, FONDLED); tft.fillRect(x + 8, y - 56, 44, 4, FONDLED); // G tft.fillRect(x + 4, y - 52, 52, 4, FONDLED); tft.fillRect(x + 8, y - 48, 44, 4, FONDLED); } // // : --- : // : 8 : // : --- : // void Led8Taille2(int x, int y, int iColor) { tft.fillRect(x + 4, y - 52, 22, 2, iColor); // A tft.fillRect(x + 2, y - 50, 26, 2, iColor); tft.fillRect(x + 4, y - 48, 21, 2, iColor); tft.fillRect(x + 24, y - 44, 2, 14, iColor); // B tft.fillRect(x + 26, y - 46, 2, 18, iColor); tft.fillRect(x + 28, y - 48, 2, 22, iColor); tft.fillRect(x + 24, y - 20, 2, 14, iColor); // C tft.fillRect(x + 26, y - 22, 2, 18, iColor); tft.fillRect(x + 28, y - 24, 2, 22, iColor); tft.fillRect(x + 4, y - 0, 22, 2, iColor); // D tft.fillRect(x + 2, y - 2, 26, 2, iColor); tft.fillRect(x + 4, y - 4, 22, 2, iColor); tft.fillRect(x + 0, y - 24, 2, 22, iColor); // E tft.fillRect(x + 2, y - 22, 2, 18, iColor); tft.fillRect(x + 4, y - 20, 2, 14, iColor); tft.fillRect(x + 0, y - 48, 2, 22, iColor); // F tft.fillRect(x + 2, y - 46, 2, 18, iColor); tft.fillRect(x + 4, y - 44, 2, 14, iColor); tft.fillRect(x + 4, y - 28, 22, 2, iColor); // G tft.fillRect(x + 2, y - 26, 26, 2, iColor); tft.fillRect(x + 4, y - 24, 22, 2, iColor); } void Led8Taille3(int x, int y, int iColor) { tft.fillRect(x + 8, y - 104, 44, 4, iColor); // A tft.fillRect(x + 4, y - 100, 52, 4, iColor); tft.fillRect(x + 8, y - 96, 44, 4, iColor); tft.fillRect(x + 48, y - 88, 4, 28, iColor); // B tft.fillRect(x + 52, y - 92, 4, 36, iColor); tft.fillRect(x + 56, y - 96, 4, 44, iColor); tft.fillRect(x + 48, y - 40, 4, 28, iColor); // C tft.fillRect(x + 52, y - 44, 4, 36, iColor); tft.fillRect(x + 56, y - 48, 4, 44, iColor); tft.fillRect(x + 8, y - 0, 44, 4, iColor); // D tft.fillRect(x + 4, y - 4, 52, 4, iColor); tft.fillRect(x + 8, y - 8, 44, 4, iColor); tft.fillRect(x + 0, y - 48, 4, 44, iColor); // E tft.fillRect(x + 4, y - 44, 4, 36, iColor); tft.fillRect(x + 8, y - 40, 4, 28, iColor); tft.fillRect(x + 0, y - 96, 4, 44, iColor); // F tft.fillRect(x + 4, y - 92, 4, 36, iColor); tft.fillRect(x + 8, y - 88, 4, 28, iColor); tft.fillRect(x + 8, y - 56, 44, 4, iColor); // G tft.fillRect(x + 4, y - 52, 52, 4, iColor); tft.fillRect(x + 8, y - 48, 44, 4, iColor); } // // : --- : // : 9 : // : --- : // void Led9Taille2(int x, int y, int iColor) { tft.fillRect(x + 4, y - 52, 22, 2, iColor); // A tft.fillRect(x + 2, y - 50, 26, 2, iColor); tft.fillRect(x + 4, y - 48, 22, 2, iColor); tft.fillRect(x + 24, y - 44, 2, 14, iColor); // B tft.fillRect(x + 26, y - 46, 2, 18, iColor); tft.fillRect(x + 28, y - 48, 2, 22, iColor); tft.fillRect(x + 24, y - 20, 2, 14, iColor); // C tft.fillRect(x + 26, y - 22, 2, 18, iColor); tft.fillRect(x + 28, y - 24, 2, 22, iColor); tft.fillRect(x + 4, y - 0, 22, 2, iColor); // D tft.fillRect(x + 2, y - 2, 26, 2, iColor); tft.fillRect(x + 4, y - 4, 22, 2, iColor); tft.fillRect(x + 0, y - 24, 2, 22, FONDLED); // E tft.fillRect(x + 2, y - 22, 2, 18, FONDLED); tft.fillRect(x + 4, y - 20, 2, 14, FONDLED); tft.fillRect(x + 0, y - 48, 2, 22, iColor); // F tft.fillRect(x + 2, y - 46, 2, 18, iColor); tft.fillRect(x + 4, y - 44, 2, 14, iColor); tft.fillRect(x + 4, y - 28, 22, 2, iColor); // G tft.fillRect(x + 2, y - 26, 26, 2, iColor); tft.fillRect(x + 4, y - 24, 22, 2, iColor); } void Led9Taille3(int x, int y, int iColor) { tft.fillRect(x + 8, y - 104, 44, 4, iColor); // A tft.fillRect(x + 4, y - 100, 52, 4, iColor); tft.fillRect(x + 8, y - 96, 44, 4, iColor); tft.fillRect(x + 48, y - 88, 4, 28, iColor); // B tft.fillRect(x + 52, y - 92, 4, 36, iColor); tft.fillRect(x + 56, y - 96, 4, 44, iColor); tft.fillRect(x + 48, y - 40, 4, 28, iColor); // C tft.fillRect(x + 52, y - 44, 4, 36, iColor); tft.fillRect(x + 56, y - 48, 4, 44, iColor); tft.fillRect(x + 8, y - 0, 44, 4, iColor); // D tft.fillRect(x + 4, y - 4, 52, 4, iColor); tft.fillRect(x + 8, y - 8, 44, 4, iColor); tft.fillRect(x + 0, y - 48, 4, 44, FONDLED); // E tft.fillRect(x + 4, y - 44, 4, 36, FONDLED); tft.fillRect(x + 8, y - 40, 4, 28, FONDLED); tft.fillRect(x + 0, y - 96, 4, 44, iColor); // F tft.fillRect(x + 4, y - 92, 4, 36, iColor); tft.fillRect(x + 8, y - 88, 4, 28, iColor); tft.fillRect(x + 8, y - 56, 44, 4, iColor); // G tft.fillRect(x + 4, y - 52, 52, 4, iColor); tft.fillRect(x + 8, y - 48, 44, 4, iColor); } // // : --- : // : 0 : // : --- : // void Led0Taille2(int x, int y, int iColor) { tft.fillRect(x + 4, y - 52, 22, 2, iColor); // A tft.fillRect(x + 0, y - 50, 26, 2, iColor); tft.fillRect(x + 4, y - 48, 22, 2, iColor); tft.fillRect(x + 24, y - 44, 2, 14, iColor); // B tft.fillRect(x + 26, y - 46, 2, 18, iColor); tft.fillRect(x + 28, y - 48, 2, 22, iColor); tft.fillRect(x + 24, y - 20, 2, 14, iColor); // C tft.fillRect(x + 26, y - 22, 2, 18, iColor); tft.fillRect(x + 28, y - 24, 2, 22, iColor); tft.fillRect(x + 4, y - 0, 22, 2, iColor); // D tft.fillRect(x + 2, y - 2, 26, 2, iColor); tft.fillRect(x + 4, y - 4, 22, 2, iColor); tft.fillRect(x + 0, y - 24, 2, 22, iColor); // E tft.fillRect(x + 2, y - 22, 2, 18, iColor); tft.fillRect(x + 4, y - 20, 2, 14, iColor); tft.fillRect(x + 0, y - 48, 2, 22, iColor); // F tft.fillRect(x + 2, y - 46, 2, 18, iColor); tft.fillRect(x + 4, y - 44, 2, 14, iColor); tft.fillRect(x + 4, y - 28, 22, 2, FONDLED); // G tft.fillRect(x + 2, y - 26, 26, 2, FONDLED); tft.fillRect(x + 4, y - 24, 22, 2, FONDLED); } void Led0Taille3(int x, int y, int iColor) { tft.fillRect(x + 8, y - 104, 44, 4, iColor); // A tft.fillRect(x + 4, y - 100, 52, 4, iColor); tft.fillRect(x + 8, y - 96, 44, 4, iColor); tft.fillRect(x + 48, y - 88, 4, 28, iColor); // B tft.fillRect(x + 52, y - 92, 4, 36, iColor); tft.fillRect(x + 56, y - 96, 4, 44, iColor); tft.fillRect(x + 48, y - 40, 4, 28, iColor); // C tft.fillRect(x + 52, y - 44, 4, 36, iColor); tft.fillRect(x + 56, y - 48, 4, 44, iColor); tft.fillRect(x + 8, y - 0, 44, 4, iColor); // D tft.fillRect(x + 4, y - 4, 52, 4, iColor); tft.fillRect(x + 8, y - 8, 44, 4, iColor); tft.fillRect(x + 0, y - 48, 4, 44, iColor); // E tft.fillRect(x + 4, y - 44, 4, 36, iColor); tft.fillRect(x + 8, y - 40, 4, 28, iColor); tft.fillRect(x + 0, y - 96, 4, 44, iColor); // F tft.fillRect(x + 4, y - 92, 4, 36, iColor); tft.fillRect(x + 8, y - 88, 4, 28, iColor); tft.fillRect(x + 8, y - 56, 44, 4, FONDLED); // G tft.fillRect(x + 4, y - 52, 52, 4, FONDLED); tft.fillRect(x + 8, y - 48, 44, 4, FONDLED); } // // : ------------- : // : Deux points : // : ------------- : // void LedDeuxPointsTaille2(int x, int y, int iColor) { tft.fillRect(x + 12, y - 20, 6, 4, iColor); tft.fillRect(x + 12, y - 34, 6, 4, iColor); } void LedDeuxPointsTaille3(int x, int y, int iColor) { tft.fillRect(x + 24, y - 40, 12, 8, iColor); tft.fillRect(x + 24, y - 68, 12, 8, iColor); } // // : ------------ : // : Anneau fete : // : ------------ : // void anneauFete() { Serial.println("Allume l'anneau de fete"); Serial.println(" "); for (t = 0; t < 12; t++) { colorWipe(anneau.Color(255, 0, 0), 50); // Rouge colorWipe(anneau.Color(0, 255, 0), 50); // Vert colorWipe(anneau.Color(255, 255, 255), 50); // Blanc colorWipe(anneau.Color(0, 0, 255), 50); // Bleu colorWipe(anneau.Color(255, 255, 0), 50); // Jaune } colorWipe(anneau.Color(0, 0, 0), 50); // Noir } // // : ---------------------------------- : // : Un tour complet d'une couleur unie : // : ---------------------------------- : // // void colorWipe(uint32_t color, int wait) { for (int i = 0; i < anneau.numPixels(); i++) { anneau.setPixelColor(i, color); anneau.show(); delay(10); } } // // : ------------------------------------------------------------- : // : De bas en haut Rouge Rouge Orange Orange Jaune Vert Bleu Bleu : // : ------------------------------------------------------------- : // // void anneauColore() { anneau.setPixelColor(0, anneau.Color(0, 255, 0)); // Vert anneau.show(); delay(200); anneau.setPixelColor(1, anneau.Color(0, 255, 0)); // Vert anneau.show(); delay(200); anneau.setPixelColor(2, anneau.Color(255, 255, 0)); // Jaune anneau.show(); delay(200); anneau.setPixelColor(3, anneau.Color(255, 255, 0)); // Jaune anneau.show(); delay(200); anneau.setPixelColor(4, anneau.Color(0, 0, 255)); // Bleu anneau.show(); delay(200); anneau.setPixelColor(5, anneau.Color(0, 0, 255)); // Bleu anneau.show(); delay(200); anneau.setPixelColor(6, anneau.Color(0, 0, 255)); // Bleu anneau.show(); delay(200); anneau.setPixelColor(7, anneau.Color(0, 0, 255)); // Bleu anneau.show(); delay(200); anneau.setPixelColor(8, anneau.Color(255, 255, 0)); // Jaune anneau.show(); delay(200); anneau.setPixelColor(9, anneau.Color(255, 255, 0)); // Jaune anneau.show(); delay(200); anneau.setPixelColor(10, anneau.Color(0, 255, 0)); // Vert anneau.show(); delay(200); anneau.setPixelColor(11, anneau.Color(0, 255, 0)); // Vert anneau.show(); delay(200); } // // : ---------------------- : // : Eteint toutes les leds : // : ---------------------- : // void anneauEteint() { for (t = 11; t >= 0; t--) { anneau.setPixelColor(t, anneau.Color(0, 0, 0)); delay(200); anneau.show(); } } // // : ---------- : // : Parametres : // : ---------- : // void parametres() { Serial.println("Affichage des parametres sur l'ecran TFT"); Serial.println(" "); litLaDateEtLHeure(); tft.fillScreen(BLACK); tft.setRotation(3); unsigned long start = micros(); tft.setCursor(0, 20); tft.setTextSize(3); tft.setTextColor(RED); tft.println("PARAMETRES"); tft.println("REGLABLES"); tft.println("AU CLAVIER"); tft.println(" "); tft.setTextColor(GREEN); tft.print("BRILLANCE: "); tft.setTextColor(YELLOW); tft.println(iBrillance); tft.setTextColor(GREEN); tft.print("DATE: "); tft.setTextColor(YELLOW); tft.print(iJours); tft.print("."); tft.print(iMois); tft.print("."); tft.println(iAnnees); tft.setTextColor(GREEN); tft.print("HEURE: "); tft.setTextColor(YELLOW); tft.print(iHeures); tft.print("."); tft.println(iMinutes); Serial.println(" "); }