// ##################################### // # HORLOGE AQUARIUM # // ##################################### // # Guy Magli 29.09.2020 # // ##################################### // # Conception, cablages # // # mises a jour, # // # contact... # // # www.magli.fr # // ###################################### // // : ------------- : // La personnalisation des affichages de ce code source concerne : Famille Magli : // : ------------- : // // Afin d'eviter les problemes d'affichage et d'impression les signes diacritiques // ont ete retires des commentaires et des chaines de caracteres. // // Ce programme fonctionne mal s'il est televerse avec Visual Studio (16.7.3). // Il faut imperativement le televerser avec l'IDE Arduino. // // CE MODELE NE DISPOSE PAS DE CLAVIER. D'une part, l'horloge est destinee a une utilisation familiale et je pourrai // la remettre a l'heure depuis un Pc, et, d'autre part, je mise sur un abandon prochain des heures d'ete et d'hiver. // // ! ======================== ! // ! Librairies et parametres ! // ! ======================== ! // #include // Pour la communication avec un peripherique #include // Pour utilisation de l'horloge RTC #include // Chaines de caracteres #include // Pour l'ecran #include // Pour l'ecran // // ! ================== ! // ! VARIABLES GLOBALES ! // ! ================== ! // // : ----------------------------- : // : Pour les prenoms et les fetes : // : ----------------------------- : // const int iNbPrenoms = 2; String cPrenoms[iNbPrenoms] = { "GUY", "MARITE" }; String cPrenomsMelanges[iNbPrenoms] = { "GUY", "MARITE" }; int iSaintJour[iNbPrenoms] = { 17, 19 }; int iSaintMois[iNbPrenoms] = { 7, 5 }; int iAnnivJour[iNbPrenoms] = { 12, 7 }; int iAnnivMois[iNbPrenoms] = { 6, 6 }; const int iNbFetes = 2; String cFetes[iNbFetes] = { "BONNE ANNEE A TOUS", "JOYEUX NOEL A TOUS" }; int iFetesJour[iNbFetes] = { 1, 25 }; int iFetesMois[iNbFetes] = { 1, 12 }; String cMessage = ""; // Le message (bonjour, bonne nuit...) a afficher // // : ---------------------------------- : // : Pour l'horloge, la date et l'heure : // : ---------------------------------- : // RTC_DS1307 RTC; // Constante pour le module horloge // 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 long int iAnnees = 0; // Annees int iJoursDeLaSemaine = 0; // Jour de la semaine String cJoursDeLaSemaine = ""; // Jour en lettres String cChaineDate = ""; // La date sous la forme JJMMAAA String cCHaineHeure = ""; // L'heure sous la forme HHMM bool bFete = false; // // : ------------------------------ : // : Pour le detecteur de mouvement : // : ------------------------------ : // const int iMouvement = 23; // // : ------ : // : 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 LCDWIKI_KBV mylcd(ILI9486, LCD_CS, LCD_CD, LCD_WR, LCD_RD, LCD_RESET); #define BUFFPIXEL 20 int xPos, yPos; // Coordonnees d'affichage int iLargeur; // Largeur de l'ecran (en mode portrait ou, ici, paysage) // // Pour les Led // const int iLed1 = 24; // Premiere led const int iLed2 = 25; // Seconde led // // ! ===== ! // ! Setup ! // ! ===== ! // void setup() { // // Pour le debogage // Serial.begin(9600); // // Pour la detection du mouvement // pinMode(iMouvement, INPUT); // C'est un connecteur d'entree digitalWrite(iMouvement, LOW); // // Pour les led // pinMode(iLed1, OUTPUT); // C'est un connecteur de sortie pinMode(iLed2, OUTPUT); // C'est un connecteur de sortie // // Pour la largeur de l'ecran // iLargeur = 480; // // Pour l'horloge // Wire.begin(); RTC.begin(); delay(1000); // // : ------------------------------ : // : Affichage de la page d'accueil : // : ------------------------------ : // mylcd.Init_LCD(); mylcd.Fill_Screen(0, 0, 0); // Fond noir mylcd.Set_Rotation(1); // Mode paysage // // Titre // yPos = 120; mylcd.Set_Draw_color(0, 0, 255); mylcd.Draw_Round_Rectangle(40, 72, 440, 195, 2); CentreEtAfficheTaille1("HORLOGE PERSONNALISEE", yPos, 255, 255, 255); // Blanc delay(1000); // // Prenoms et noms // yPos = 170; CentreEtAfficheTaille1("MARITE ET GUY", yPos, 255, 255, 255); // Blanc delay(5000); yPos = 260; CentreEtAfficheTaille1("CONCEPTION", yPos, 128, 128, 128); // Gris delay(1000); mylcd.Set_Draw_color(0, 0, 0); mylcd.Fill_Rectangle(0, 240, iLargeur, 280); delay(100); CentreEtAfficheTaille1("REALISATION", yPos, 128, 128, 128); // Gris delay(1000); mylcd.Set_Draw_color(0, 0, 0); mylcd.Fill_Rectangle(0, 240, iLargeur, 280); delay(100); CentreEtAfficheTaille1("PROGRAMMATION", yPos, 128, 128, 128); // Gris delay(1000); mylcd.Set_Draw_color(0, 0, 0); mylcd.Fill_Rectangle(0, 240, iLargeur, 280); delay(100); CentreEtAfficheTaille1("LE GENIE DU BUREAU", yPos, 128, 128, 128); // Gris delay(1000); mylcd.Set_Draw_color(0, 0, 0); mylcd.Fill_Rectangle(0, 240, iLargeur, 280); delay(1000); delay(5000); // // Etalonnage du detecteur // mylcd.Fill_Screen(0, 0, 0); // Fond noir yPos = 120; mylcd.Set_Draw_color(0, 0, 255); mylcd.Draw_Round_Rectangle(40, 72, 440, 195, 2); CentreEtAfficheTaille1("VEUILLEZ PATIENTER", yPos, 255, 255, 255); // Blanc delay(1000); // // Prenoms et noms // yPos = 170; CentreEtAfficheTaille1("ETALONNAGE UNE MINUTE", yPos, 255, 255, 255); // Blanc delay(60000); // Cette ligne est a utiliser uniquement pour les mises a l'heure // RTC.adjust(DateTime(__DATE__, __TIME__)); } void loop() { mylcd.Fill_Screen(0, 0, 0); // Fond noir // // : --------------------------- : // : Si un mouvement est detecte : // : --------------------------- : // if (digitalRead(iMouvement) == HIGH) // Si un mouvement est detecte { digitalWrite(iLed1, HIGH); // Allume premiere led digitalWrite(iLed2, HIGH); // Allume seconde led digitalWrite(iMouvement, LOW); // // ----------------------- // Affiche l'heure en gros (debut du cycle d'affichage) // ----------------------- // litLaDateEtLHeure(); afficheHeureGros(); // // Delai de 2,5 secondes // for (t = 1; t < 25; t++) { delay(100); digitalWrite(iMouvement, LOW); } mylcd.Fill_Screen(0, 0, 0); // // ------------------------------------------- // Affiche l'heure en petit caracteres en haut // ------------------------------------------- // litLaDateEtLHeure(); afficheHeurePetit(); // // -------------------- // Affiche les messages // -------------------- // // Dans tous les cas, on affiche BONJOUR, BONSOIR ou BONNE NUIT... // if ((iHeures >= 0) && (iHeures < 12)) cMessage = "BONJOUR"; if ((iHeures >= 12) && (iHeures < 13)) cMessage = "BON APPETIT"; if ((iHeures >= 13) && (iHeures < 18)) cMessage = "BON APRES-MIDI"; if ((iHeures >= 18) && (iHeures < 19)) cMessage = "BON APPETIT"; if ((iHeures >= 19) && (iHeures < 21)) cMessage = "BONNE SOIREE"; if ((iHeures >= 21) && (iHeures <= 23)) cMessage = "BONNE NUIT"; CentreEtAfficheTaille1(cMessage, 125, 51, 102, 255); // // et les prenoms // afficheLesprenomsMelanges(165); // // Y a-t-il une fete a souhaiter ? // bFete = false; // // ---------------- // Fetes nationales // ---------------- // for (t = 0; t < iNbFetes; t++) { if ((iFetesJour[t] == iJours) && (iFetesMois[t] == iMois)) { cMessage = cFetes[t]; CentreEtAfficheTaille1(cMessage, 235, 255, 0, 0); // Rouge } } // // ----------------- // Fetes des prenoms // ----------------- // for (t = 0; t < iNbPrenoms; t++) { if ((iSaintJour[t] == iJours) && (iSaintMois[t] == iMois)) { cMessage = "BONNE FETE " + cPrenoms[t]; CentreEtAfficheTaille1(cMessage, 235, 255, 0, 0); // Rouge } } // // ------------- // Anniversaires // ------------- // for (t = 0; t < iNbPrenoms; t++) { if ((iAnnivJour[t] == iJours) && (iAnnivMois[t] == iMois)) { cMessage = "BON ANNIVERSAIRE " + cPrenoms[t]; CentreEtAfficheTaille1(cMessage, 235, 255, 0, 0); // Rouge } } // // ---------------------- // Affiche la date en bas // ---------------------- // afficheDatePetit(); // // Delai de 5 secondes // for (t = 1; t < 50; t++) { delay(100); digitalWrite(iMouvement, LOW); } // // ----------------------- // Affiche l'heure en gros (fin du cycle d'affichage) // ----------------------- // mylcd.Fill_Screen(0, 0, 0); afficheHeureGros(); digitalWrite(iLed1, LOW); // Eteint premiere led digitalWrite(iLed2, LOW); // Eteint seconde led // // Delai de 5 secondes // for (t = 1; t < 50; t++) { delay(100); digitalWrite(iMouvement, LOW); } while (digitalRead(iMouvement) == HIGH) { digitalWrite(iMouvement, LOW); } } } // // ! ========== ! // ! Procedures ! // ! ========== ! // // : ----------- : // : L'HORLOGE : // : ----------- : // // : ----------------------------------------------------------- : // : Affiche l'heure et les minutes en gros au milieu de l'ecran : // : ----------------------------------------------------------- : // void afficheHeureGros() { int xHeuresD = 80; int xHeuresU = 158; int xMinutesD = 257; int xMinutesU = 335; int yHeuresMinutes = 200; litLaDateEtLHeure(); mylcd.Set_Draw_color(0, 0, 255); // L'utilisation de switch case conduisait a des dysfonctionnements (reboot de la carte) if (iHeuresD == 0) Led0Taille3(xHeuresD, yHeuresMinutes); if (iHeuresD == 1) Led1Taille3(xHeuresD, yHeuresMinutes); if (iHeuresD == 2) Led2Taille3(xHeuresD, yHeuresMinutes); if (iHeuresD == 3) Led3Taille3(xHeuresD, yHeuresMinutes); if (iHeuresD == 4) Led4Taille3(xHeuresD, yHeuresMinutes); if (iHeuresD == 5) Led5Taille3(xHeuresD, yHeuresMinutes); if (iHeuresD == 6) Led6Taille3(xHeuresD, yHeuresMinutes); if (iHeuresD == 7) Led7Taille3(xHeuresD, yHeuresMinutes); if (iHeuresD == 8) Led8Taille3(xHeuresD, yHeuresMinutes); if (iHeuresD == 9) Led9Taille3(xHeuresD, yHeuresMinutes); if (iHeuresU == 0) Led0Taille3(xHeuresU, yHeuresMinutes); if (iHeuresU == 1) Led1Taille3(xHeuresU, yHeuresMinutes); if (iHeuresU == 2) Led2Taille3(xHeuresU, yHeuresMinutes); if (iHeuresU == 3) Led3Taille3(xHeuresU, yHeuresMinutes); if (iHeuresU == 4) Led4Taille3(xHeuresU, yHeuresMinutes); if (iHeuresU == 5) Led5Taille3(xHeuresU, yHeuresMinutes); if (iHeuresU == 6) Led6Taille3(xHeuresU, yHeuresMinutes); if (iHeuresU == 7) Led7Taille3(xHeuresU, yHeuresMinutes); if (iHeuresU == 8) Led8Taille3(xHeuresU, yHeuresMinutes); if (iHeuresU == 9) Led9Taille3(xHeuresU, yHeuresMinutes); LedDeuxPointsTaille3(210, yHeuresMinutes); if (iMinutesD == 0) Led0Taille3(xMinutesD, yHeuresMinutes); if (iMinutesD == 1) Led1Taille3(xMinutesD, yHeuresMinutes); if (iMinutesD == 2) Led2Taille3(xMinutesD, yHeuresMinutes); if (iMinutesD == 3) Led3Taille3(xMinutesD, yHeuresMinutes); if (iMinutesD == 4) Led4Taille3(xMinutesD, yHeuresMinutes); if (iMinutesD == 5) Led5Taille3(xMinutesD, yHeuresMinutes); if (iMinutesD == 6) Led6Taille3(xMinutesD, yHeuresMinutes); if (iMinutesD == 7) Led7Taille3(xMinutesD, yHeuresMinutes); if (iMinutesD == 8) Led8Taille3(xMinutesD, yHeuresMinutes); if (iMinutesD == 9) Led9Taille3(xMinutesD, yHeuresMinutes); if (iMinutesU == 0) Led0Taille3(xMinutesU, yHeuresMinutes); if (iMinutesU == 1) Led1Taille3(xMinutesU, yHeuresMinutes); if (iMinutesU == 2) Led2Taille3(xMinutesU, yHeuresMinutes); if (iMinutesU == 3) Led3Taille3(xMinutesU, yHeuresMinutes); if (iMinutesU == 4) Led4Taille3(xMinutesU, yHeuresMinutes); if (iMinutesU == 5) Led5Taille3(xMinutesU, yHeuresMinutes); if (iMinutesU == 6) Led6Taille3(xMinutesU, yHeuresMinutes); if (iMinutesU == 7) Led7Taille3(xMinutesU, yHeuresMinutes); if (iMinutesU == 8) Led8Taille3(xMinutesU, yHeuresMinutes); if (iMinutesU == 9) Led9Taille3(xMinutesU, yHeuresMinutes); } // // : ------------------------------------------------------- : // : Affiche l'heure et les minutes en petit en haut l'ecran : // : ------------------------------------------------------- : // void afficheHeurePetit() { int xHeureD = 158; int xHeureU = 193; int xMinutesD = 257; int xMinutesU = 292; int yHeure = 75; mylcd.Set_Draw_color(0, 0, 255); // L'utilisation de switch case conduisait a des dysfonctionnements (reboot de la carte) if (iHeuresD == 0) Led0Taille2(xHeureD, yHeure); if (iHeuresD == 1) Led1Taille2(xHeureD, yHeure); if (iHeuresD == 2) Led2Taille2(xHeureD, yHeure); if (iHeuresD == 3) Led3Taille2(xHeureD, yHeure); if (iHeuresD == 4) Led4Taille2(xHeureD, yHeure); if (iHeuresD == 5) Led5Taille2(xHeureD, yHeure); if (iHeuresD == 6) Led6Taille2(xHeureD, yHeure); if (iHeuresD == 7) Led7Taille2(xHeureD, yHeure); if (iHeuresD == 8) Led8Taille2(xHeureD, yHeure); if (iHeuresD == 9) Led9Taille2(xHeureD, yHeure); if (iHeuresU == 0) Led0Taille2(xHeureU, yHeure); if (iHeuresU == 1) Led1Taille2(xHeureU, yHeure); if (iHeuresU == 2) Led2Taille2(xHeureU, yHeure); if (iHeuresU == 3) Led3Taille2(xHeureU, yHeure); if (iHeuresU == 4) Led4Taille2(xHeureU, yHeure); if (iHeuresU == 5) Led5Taille2(xHeureU, yHeure); if (iHeuresU == 6) Led6Taille2(xHeureU, yHeure); if (iHeuresU == 7) Led7Taille2(xHeureU, yHeure); if (iHeuresU == 8) Led8Taille2(xHeureU, yHeure); if (iHeuresU == 9) Led9Taille2(xHeureU, yHeure); LedDeuxPointsTaille2(225, 85); if (iMinutesD == 0) Led0Taille2(xMinutesD, yHeure); if (iMinutesD == 1) Led1Taille2(xMinutesD, yHeure); if (iMinutesD == 2) Led2Taille2(xMinutesD, yHeure); if (iMinutesD == 3) Led3Taille2(xMinutesD, yHeure); if (iMinutesD == 4) Led4Taille2(xMinutesD, yHeure); if (iMinutesD == 5) Led5Taille2(xMinutesD, yHeure); if (iMinutesD == 6) Led6Taille2(xMinutesD, yHeure); if (iMinutesD == 7) Led7Taille2(xMinutesD, yHeure); if (iMinutesD == 8) Led8Taille2(xMinutesD, yHeure); if (iMinutesD == 9) Led9Taille2(xMinutesD, yHeure); if (iMinutesU == 0) Led0Taille2(xMinutesU, yHeure); if (iMinutesU == 1) Led1Taille2(xMinutesU, yHeure); if (iMinutesU == 2) Led2Taille2(xMinutesU, yHeure); if (iMinutesU == 3) Led3Taille2(xMinutesU, yHeure); if (iMinutesU == 4) Led4Taille2(xMinutesU, yHeure); if (iMinutesU == 5) Led5Taille2(xMinutesU, yHeure); if (iMinutesU == 6) Led6Taille2(xMinutesU, yHeure); if (iMinutesU == 7) Led7Taille2(xMinutesU, yHeure); if (iMinutesU == 8) Led8Taille2(xMinutesU, yHeure); if (iMinutesU == 9) Led9Taille2(xMinutesU, yHeure); } // : ------------------------------ // : Affiche les prenoms melanges : // : ------------------------------ // void afficheLesprenomsMelanges(int x) { String cProv; String cChainePrenoms; int t; int iHasard1; int iHasard2; for (t = 1; t < 10; t++) { iHasard1 = random(0, iNbPrenoms); iHasard2 = random(0, iNbPrenoms); if (iHasard1 != iHasard2) { cProv = cPrenomsMelanges[iHasard1]; cPrenomsMelanges[iHasard1] = cPrenomsMelanges[iHasard2]; cPrenomsMelanges[iHasard2] = cProv; } } cChainePrenoms = cPrenomsMelanges[0] + " " + cPrenomsMelanges[1]; CentreEtAfficheTaille1(cChainePrenoms, x, 128, 128, 128); // Gris } // // : --------------------------------- : // : Affiche la date en bas de l'ecran : // : --------------------------------- : // void afficheDatePetit() { int yDate = 300; String cChaineDate; // // Ecrit la date complete // // L'utilisation de switch case conduisait a des dysfonctionnements (reboot de la carte) if (iJoursDeLaSemaine == 1) { cChaineDate = "LUNDI "; } if (iJoursDeLaSemaine == 2) { cChaineDate = "MARDI "; } if (iJoursDeLaSemaine == 3) { cChaineDate = "MERCREDI "; } if (iJoursDeLaSemaine == 4) { cChaineDate = "JEUDI "; } if (iJoursDeLaSemaine == 5) { cChaineDate = "VENDREDI "; } if (iJoursDeLaSemaine == 6) { cChaineDate = "SAMEDI "; } if (iJoursDeLaSemaine == 0) { cChaineDate = "DIMANCHE "; } cChaineDate = cChaineDate + (String)iJoursD + " " + (String)iJoursU; //// L'utilisation de switch case conduisait a des dysfonctionnements (reboot de la carte) if (iMois == 1) { cChaineDate = cChaineDate + " JANVIER"; } if (iMois == 2) { cChaineDate = cChaineDate + " FEVRIER"; } if (iMois == 3) { cChaineDate = cChaineDate + " MARS"; } if (iMois == 4) { cChaineDate = cChaineDate + " AVRIL"; } if (iMois == 5) { cChaineDate = cChaineDate + " MAI"; } if (iMois == 6) { cChaineDate = cChaineDate + " JUIN"; } if (iMois == 7) { cChaineDate = cChaineDate + " JUILLET"; } if (iMois == 8) { cChaineDate = cChaineDate + " AOUT"; } if (iMois == 9) { cChaineDate = cChaineDate + " SEPTEMBRE"; } if (iMois == 10) { cChaineDate = cChaineDate + " OCTOBRE"; } if (iMois == 11) { cChaineDate = cChaineDate + " NOVEMBRE"; } if (iMois == 12) { cChaineDate = cChaineDate + " DECEMBRE"; } CentreEtAfficheTaille1(cChaineDate, yDate, 0, 0, 200); } // // : ----------------- : // : Lit le module RTC : // : ----------------- : // void litLaDateEtLHeure() { now = RTC.now(); // On lit l'heure complete et on extrait iHeures = now.hour(); // l'heure, iHeuresD = iHeures / 10; iHeuresU = iHeures % 10; iMinutes = now.minute(); // les minutes, iMinutesD = iMinutes / 10; iMinutesU = iMinutes % 10; iJours = now.day(); // la date du jour, iJoursD = iJours / 10; iJoursU = iJours % 10; cJours = (String)iJours; iMois = now.month(); // le mois, iAnnees = now.year(); // l'annee iJoursDeLaSemaine = now.dayOfTheWeek(); // et le jour de la semaine. } // // // : ------------- : // : L'AFFICHAGE : // : ------------- : // // : ------------------------------ // : Outils de conversion de code : // : ------------------------------ // void GM_Draw_Rectangle(int x, int y, int lx, int ly) { mylcd.Fill_Rectangle(x, y, x + lx, y + ly); } // : ---------------- : // : Epele et affiche : // : ---------------- : // void AfficheTaille1(String cChaineAAfficher, int x, int y, int colorR, int colorV, int colorB) { int t; char cChar; for (t = 0; t <= cChaineAAfficher.length(); t++) { cChar = cChaineAAfficher[t]; mylcd.Set_Draw_color(colorR, colorV, colorB); // L'utilisation de switch/case conduisait a des dysfonctionnements (reboot de la carte) if (cChar == 'A') { ATaille1(x, y); x += 19; } if (cChar == 'B') { BTaille1(x, y); x += 16; } if (cChar == 'C') { CTaille1(x, y); x += 20; } if (cChar == 'D') { DTaille1(x, y); x += 21; } if (cChar == 'E') { ETaille1(x, y); x += 17; } if (cChar == 'F') { FTaille1(x, y); x += 17; } if (cChar == 'G') { GTaille1(x, y); x += 20; } if (cChar == 'H') { HTaille1(x, y); x += 18; } if (cChar == 'I') { ITaille1(x, y); x += 7; } if (cChar == 'J') { JTaille1(x, y); x += 13; } if (cChar == 'K') { KTaille1(x, y); x += 18; } if (cChar == 'L') { LTaille1(x, y); x += 14; } if (cChar == 'M') { MTaille1(x, y); x += 20; } if (cChar == 'N') { NTaille1(x, y); x += 20; } if (cChar == 'O') { OTaille1(x, y); x += 21; } if (cChar == 'P') { PTaille1(x, y); x += 16; } if (cChar == 'Q') { QTaille1(x, y); x += 23; } if (cChar == 'R') { RTaille1(x, y); x += 18; } if (cChar == 'S') { STaille1(x, y); x += 18; } if (cChar == 'T') { TTaille1(x, y); x += 16; } if (cChar == 'U') { UTaille1(x, y); x += 19; } if (cChar == 'V') { VTaille1(x, y); x += 19; } if (cChar == 'W') { WTaille1(x, y); x += 18; } if (cChar == 'X') { XTaille1(x, y); x += 19; } if (cChar == 'Y') { YTaille1(x, y); x += 19; } if (cChar == 'Z') { ZTaille1(x, y); x += 18; } if (cChar == ' ') { EspaceTaille1(x, y); x += 10; } if (cChar == '-') { TraitDUnionTaille1(x, y); x += 19; } if (cChar == '`') { ApostropheTaille1(x, y); x += 8; } if (cChar == '0') { Led0Taille2(x, y); x += 21; } if (cChar == '1') { Led1Taille2(x, y); x += 21; } if (cChar == '2') { Led2Taille2(x, y); x += 21; } if (cChar == '3') { Led3Taille2(x, y); x += 21; } if (cChar == '4') { Led4Taille2(x, y); x += 21; } if (cChar == '5') { Led5Taille2(x, y); x += 21; } if (cChar == '6') { Led6Taille2(x, y); x += 21; } if (cChar == '7') { Led7Taille2(x, y); x += 21; } if (cChar == '8') { Led8Taille2(x, y); x += 21; } if (cChar == '9') { Led9Taille2(x, y); x += 21; } } } // // : ----------------- : // : Centre et affiche : // : ----------------- : // void CentreEtAfficheTaille1(String cChaineACentrerEtAfficher, int y, int colorR, int colorV, int colorB) { int t; char cChar; long x = 0; // L'utilisation de switch/case conduisait a des dysfonctionnements (reboot de la carte) for (t = 0; t <= cChaineACentrerEtAfficher.length(); t++) { cChar = cChaineACentrerEtAfficher[t]; if (cChar == 'A') { x += 19; } if (cChar == 'B') { x += 16; } if (cChar == 'C') { x += 20; } if (cChar == 'D') { x += 21; } if (cChar == 'E') { x += 17; } if (cChar == 'F') { x += 17; } if (cChar == 'G') { x += 20; } if (cChar == 'H') { x += 18; } if (cChar == 'I') { x += 7; } if (cChar == 'J') { x += 13; } if (cChar == 'K') { x += 18; } if (cChar == 'L') { x += 14; } if (cChar == 'M') { x += 20; } if (cChar == 'N') { x += 20; } if (cChar == 'O') { x += 21; } if (cChar == 'P') { x += 16; } if (cChar == 'Q') { x += 23; } if (cChar == 'R') { x += 18; } if (cChar == 'S') { x += 18; } if (cChar == 'T') { x += 16; } if (cChar == 'U') { x += 19; } if (cChar == 'V') { x += 19; } if (cChar == 'W') { x += 18; } if (cChar == 'X') { x += 19; } if (cChar == 'Y') { x += 19; } if (cChar == 'Z') { x += 18; } if (cChar == ' ') { x += 10; } if (cChar == '-') { x += 19; } if (cChar == '`') { x += 8; } if (cChar == '0') { x += 21; } if (cChar == '1') { x += 21; } if (cChar == '2') { x += 21; } if (cChar == '3') { x += 21; } if (cChar == '4') { x += 21; } if (cChar == '5') { x += 21; } if (cChar == '6') { x += 21; } if (cChar == '7') { x += 21; } if (cChar == '8') { x += 21; } if (cChar == '9') { x += 21; } } mylcd.Set_Draw_color(colorR, colorV, colorB); AfficheTaille1(cChaineACentrerEtAfficher, ((iLargeur - x) / 2), y, colorR, colorV, colorB); } // // : ----------- : // : LES LETTRES : // : ----------- : // // : - : // : A : // : - : // void ATaille1(int x, int y) // Largeur 19 { GM_Draw_Rectangle(x, y - 1, 2, 2); GM_Draw_Rectangle(x + 1, y - 4, 2, 3); GM_Draw_Rectangle(x + 2, y - 6, 2, 3); GM_Draw_Rectangle(x + 3, y - 9, 2, 4); GM_Draw_Rectangle(x + 4, y - 12, 2, 3); GM_Draw_Rectangle(x + 5, y - 15, 2, 4); GM_Draw_Rectangle(x + 6, y - 17, 2, 3); GM_Draw_Rectangle(x + 7, y - 19, 3, 2); GM_Draw_Rectangle(x + 9, y - 17, 2, 3); GM_Draw_Rectangle(x + 10, y - 16, 2, 4); GM_Draw_Rectangle(x + 11, y - 13, 2, 3); GM_Draw_Rectangle(x + 12, y - 10, 2, 4); GM_Draw_Rectangle(x + 13, y - 7, 2, 3); GM_Draw_Rectangle(x + 14, y - 5, 2, 3); GM_Draw_Rectangle(x + 15, y - 2, 2, 2); GM_Draw_Rectangle(x + 3, y - 7, 11, 2); xPos += 19; } // // : - : // : B : // : - : // void BTaille1(int x, int y) // Largeur 16 { GM_Draw_Rectangle(x, y - 19, 2, 20); GM_Draw_Rectangle(x, y - 19, 11, 2); GM_Draw_Rectangle(x, y - 10, 12, 2); GM_Draw_Rectangle(x, y - 1, 11, 2); GM_Draw_Rectangle(x + 10, y - 18, 2, 2); GM_Draw_Rectangle(x + 11, y - 17, 2, 2); GM_Draw_Rectangle(x + 11, y - 16, 2, 5); GM_Draw_Rectangle(x + 11, y - 15, 2, 2); GM_Draw_Rectangle(x + 11, y - 12, 2, 3); GM_Draw_Rectangle(x + 12, y - 9, 2, 2); GM_Draw_Rectangle(x + 12, y - 7, 2, 5); GM_Draw_Rectangle(x + 12, y - 3, 2, 2); GM_Draw_Rectangle(x + 11, y - 2, 2, 2); xPos += 16; } // // : - : // : C : // : - : // void CTaille1(int x, int y) // Largeur 20 { GM_Draw_Rectangle(x + 16, y - 6, 2, 2); GM_Draw_Rectangle(x + 15, y - 5, 2, 3); GM_Draw_Rectangle(x + 14, y - 3, 2, 2); GM_Draw_Rectangle(x + 12, y - 2, 3, 2); GM_Draw_Rectangle(x + 6, y - 1, 7, 2); GM_Draw_Rectangle(x + 4, y - 2, 2, 2); GM_Draw_Rectangle(x + 3, y - 3, 2, 2); GM_Draw_Rectangle(x + 3, y - 4, 2, 2); GM_Draw_Rectangle(x + 1, y - 6, 2, 3); GM_Draw_Rectangle(x + 0, y - 13, 2, 7); GM_Draw_Rectangle(x + 1, y - 15, 2, 3); GM_Draw_Rectangle(x + 2, y - 16, 2, 2); GM_Draw_Rectangle(x + 3, y - 17, 2, 2); GM_Draw_Rectangle(x + 4, y - 18, 2, 2); GM_Draw_Rectangle(x + 6, y - 19, 7, 2); GM_Draw_Rectangle(x + 13, y - 18, 2, 2); GM_Draw_Rectangle(x + 14, y - 17, 2, 2); GM_Draw_Rectangle(x + 15, y - 16, 2, 2); GM_Draw_Rectangle(x + 16, y - 15, 2, 2); xPos += 20; } // // : - : // : D : // : - : // void DTaille1(int x, int y) // Largeur 19 { GM_Draw_Rectangle(x + 0, y - 19, 2, 19); GM_Draw_Rectangle(x + 0, y - 19, 12, 2); GM_Draw_Rectangle(x + 0, y - 1, 12, 2); GM_Draw_Rectangle(x + 11, y - 18, 2, 2); GM_Draw_Rectangle(x + 13, y - 17, 2, 2); GM_Draw_Rectangle(x + 14, y - 15, 2, 2); GM_Draw_Rectangle(x + 15, y - 13, 2, 8); GM_Draw_Rectangle(x + 14, y - 5, 2, 2); GM_Draw_Rectangle(x + 13, y - 3, 2, 2); GM_Draw_Rectangle(x + 12, y - 2, 2, 2); xPos += 21; } // // : - : // : E : // : - : // void ETaille1(int x, int y) // Largeur 17 { GM_Draw_Rectangle(x + 0, y - 19, 2, 19); GM_Draw_Rectangle(x + 0, y - 19, 15, 2); GM_Draw_Rectangle(x + 0, y - 10, 14, 2); GM_Draw_Rectangle(x + 0, y - 0, 15, 2); xPos += 17; } // // : - : // : F : // : - : // void FTaille1(int x, int y) // Largeur 17 { GM_Draw_Rectangle(x + 0, y - 19, 2, 21); GM_Draw_Rectangle(x + 0, y - 19, 15, 2); GM_Draw_Rectangle(x + 0, y - 10, 12, 2); xPos += 17; } // // : - : // : G : // : - : // void GTaille1(int x, int y) // Largeur 20 { GM_Draw_Rectangle(x + 16, y - 6, 2, 2); GM_Draw_Rectangle(x + 15, y - 5, 2, 3); GM_Draw_Rectangle(x + 14, y - 3, 2, 2); GM_Draw_Rectangle(x + 12, y - 2, 3, 2); GM_Draw_Rectangle(x + 6, y - 1, 7, 2); GM_Draw_Rectangle(x + 4, y - 2, 2, 2); GM_Draw_Rectangle(x + 3, y - 3, 2, 2); GM_Draw_Rectangle(x + 3, y - 4, 2, 2); GM_Draw_Rectangle(x + 1, y - 6, 2, 3); GM_Draw_Rectangle(x + 0, y - 13, 2, 7); GM_Draw_Rectangle(x + 1, y - 15, 2, 3); GM_Draw_Rectangle(x + 2, y - 16, 2, 2); GM_Draw_Rectangle(x + 3, y - 17, 2, 2); GM_Draw_Rectangle(x + 4, y - 18, 2, 2); GM_Draw_Rectangle(x + 6, y - 19, 7, 2); GM_Draw_Rectangle(x + 13, y - 18, 2, 2); GM_Draw_Rectangle(x + 14, y - 17, 2, 2); GM_Draw_Rectangle(x + 15, y - 16, 2, 2); GM_Draw_Rectangle(x + 16, y - 15, 2, 2); GM_Draw_Rectangle(x + 10, y - 10, 8, 2); GM_Draw_Rectangle(x + 16, y - 10, 2, 7); xPos += 20; } // // : - : // : H : // : - : // void HTaille1(int x, int y) // Largeur 17 { GM_Draw_Rectangle(x + 0, y - 19, 2, 20); GM_Draw_Rectangle(x + 0, y - 10, 15, 2); GM_Draw_Rectangle(x + 13, y - 19, 2, 20); xPos += 18; } // // : - : // : I : // : - : // void ITaille1(int x, int y) // Largeur 7 { GM_Draw_Rectangle(x + 0, y - 19, 2, 20); xPos += 7; } // // : - : // : J : // : - : // void JTaille1(int x, int y) // Largeur 13 { GM_Draw_Rectangle(x + 0, y - 5, 2, 3); GM_Draw_Rectangle(x + 1, y - 2, 2, 2); GM_Draw_Rectangle(x + 2, y - 1, 5, 2); GM_Draw_Rectangle(x + 7, y - 2, 2, 2); GM_Draw_Rectangle(x + 8, y - 19, 2, 17); xPos += 13; } // // : - : // : K : // : - : // void KTaille1(int x, int y) // Largeur 18 { GM_Draw_Rectangle(x + 0, y - 19, 2, 20); mylcd.Draw_Line(x + 2, y - 9, x + 12, y - 19); mylcd.Draw_Line(x + 2, y - 8, x + 13, y - 19); mylcd.Draw_Line(x + 2, y - 7, x + 14, y - 19); GM_Draw_Rectangle(x + 6, y - 10, 2, 2); GM_Draw_Rectangle(x + 7, y - 8, 3, 2); GM_Draw_Rectangle(x + 8, y - 6, 3, 1); GM_Draw_Rectangle(x + 9, y - 5, 3, 1); GM_Draw_Rectangle(x + 10, y - 4, 3, 1); GM_Draw_Rectangle(x + 11, y - 3, 2, 2); GM_Draw_Rectangle(x + 12, y - 2, 3, 1); GM_Draw_Rectangle(x + 12, y - 1, 3, 1); GM_Draw_Rectangle(x + 13, y - 0, 3, 0); xPos += 18; } // // : - : // : L : // : - : // void LTaille1(int x, int y) // Largeur 14 { GM_Draw_Rectangle(x + 0, y - 19, 2, 20); GM_Draw_Rectangle(x + 0, y - 1, 12, 2); xPos += 14; } // // : - : // : M : // : - : // void MTaille1(int x, int y) // Largeur 18 { GM_Draw_Rectangle(x + 0, y - 19, 2, 20); GM_Draw_Rectangle(x + 0, y - 18, 4, 3); GM_Draw_Rectangle(x + 3, y - 15, 2, 3); GM_Draw_Rectangle(x + 4, y - 12, 2, 3); GM_Draw_Rectangle(x + 5, y - 9, 2, 4); GM_Draw_Rectangle(x + 6, y - 6, 2, 4); GM_Draw_Rectangle(x + 7, y - 2, 3, 3); GM_Draw_Rectangle(x + 9, y - 6, 2, 4); GM_Draw_Rectangle(x + 10, y - 9, 2, 4); GM_Draw_Rectangle(x + 11, y - 12, 2, 3); GM_Draw_Rectangle(x + 12, y - 15, 2, 3); GM_Draw_Rectangle(x + 13, y - 18, 1, 4); GM_Draw_Rectangle(x + 14, y - 19, 2, 20); xPos += 20; } // // : - : // : N : // : - : // void NTaille1(int x, int y) // Largeur 18 { GM_Draw_Rectangle(x + 0, y - 19, 2, 20); GM_Draw_Rectangle(x + 0, y - 19, 3, 2); GM_Draw_Rectangle(x + 0, y - 17, 4, 2); GM_Draw_Rectangle(x + 3, y - 15, 2, 1); GM_Draw_Rectangle(x + 4, y - 14, 2, 2); GM_Draw_Rectangle(x + 5, y - 12, 2, 1); GM_Draw_Rectangle(x + 6, y - 11, 2, 2); GM_Draw_Rectangle(x + 7, y - 9, 2, 2); GM_Draw_Rectangle(x + 8, y - 7, 2, 1); GM_Draw_Rectangle(x + 9, y - 6, 2, 2); GM_Draw_Rectangle(x + 10, y - 4, 2, 1); GM_Draw_Rectangle(x + 11, y - 3, 2, 2); GM_Draw_Rectangle(x + 12, y - 1, 2, 2); GM_Draw_Rectangle(x + 14, y - 19, 2, 20); xPos += 20; } // // : - : // : O : // : - : // void OTaille1(int x, int y) // Largeur 21 { GM_Draw_Rectangle(x + 16, y - 6, 2, 2); GM_Draw_Rectangle(x + 15, y - 5, 2, 3); GM_Draw_Rectangle(x + 14, y - 3, 2, 2); GM_Draw_Rectangle(x + 12, y - 2, 3, 2); GM_Draw_Rectangle(x + 6, y - 1, 7, 2); GM_Draw_Rectangle(x + 4, y - 2, 2, 2); GM_Draw_Rectangle(x + 3, y - 3, 2, 2); GM_Draw_Rectangle(x + 3, y - 4, 2, 2); GM_Draw_Rectangle(x + 1, y - 6, 2, 3); GM_Draw_Rectangle(x + 0, y - 13, 2, 7); GM_Draw_Rectangle(x + 1, y - 15, 2, 3); GM_Draw_Rectangle(x + 2, y - 16, 2, 2); GM_Draw_Rectangle(x + 3, y - 17, 2, 2); GM_Draw_Rectangle(x + 4, y - 18, 2, 2); GM_Draw_Rectangle(x + 6, y - 19, 7, 2); GM_Draw_Rectangle(x + 13, y - 18, 2, 2); GM_Draw_Rectangle(x + 14, y - 17, 2, 2); GM_Draw_Rectangle(x + 15, y - 16, 2, 2); GM_Draw_Rectangle(x + 16, y - 15, 2, 2); GM_Draw_Rectangle(x + 17, y - 13, 2, 8); xPos += 21; } // // : - : // : P : // : - : // void PTaille1(int x, int y) // Largeur 16 { GM_Draw_Rectangle(x + 0, y - 19, 2, 20); GM_Draw_Rectangle(x + 0, y - 19, 11, 2); GM_Draw_Rectangle(x + 0, y - 9, 10, 2); GM_Draw_Rectangle(x + 10, y - 18, 2, 2); GM_Draw_Rectangle(x + 11, y - 17, 2, 2); GM_Draw_Rectangle(x + 12, y - 16, 2, 6); GM_Draw_Rectangle(x + 11, y - 10, 2, 2); GM_Draw_Rectangle(x + 10, y - 9, 2, 2); xPos += 16; } // // : - : // : Q : // : - : // void QTaille1(int x, int y) // Largeur 18 { GM_Draw_Rectangle(x + 16, y - 6, 2, 2); GM_Draw_Rectangle(x + 15, y - 5, 2, 3); GM_Draw_Rectangle(x + 14, y - 3, 2, 2); GM_Draw_Rectangle(x + 12, y - 2, 3, 2); GM_Draw_Rectangle(x + 6, y - 1, 7, 2); GM_Draw_Rectangle(x + 4, y - 2, 2, 2); GM_Draw_Rectangle(x + 3, y - 3, 2, 2); GM_Draw_Rectangle(x + 3, y - 4, 2, 2); GM_Draw_Rectangle(x + 1, y - 6, 2, 3); GM_Draw_Rectangle(x + 0, y - 13, 2, 7); GM_Draw_Rectangle(x + 1, y - 15, 2, 3); GM_Draw_Rectangle(x + 2, y - 16, 2, 2); GM_Draw_Rectangle(x + 3, y - 17, 2, 2); GM_Draw_Rectangle(x + 4, y - 18, 2, 2); GM_Draw_Rectangle(x + 6, y - 19, 7, 2); GM_Draw_Rectangle(x + 13, y - 18, 2, 2); GM_Draw_Rectangle(x + 14, y - 17, 2, 2); GM_Draw_Rectangle(x + 15, y - 16, 2, 2); GM_Draw_Rectangle(x + 16, y - 15, 2, 2); GM_Draw_Rectangle(x + 17, y - 13, 2, 8); GM_Draw_Rectangle(x + 10, y - 4, 3, 2); GM_Draw_Rectangle(x + 12, y - 3, 5, 3); GM_Draw_Rectangle(x + 16, y + 0, 2, 2); GM_Draw_Rectangle(x + 17, y + 1, 2, 2); xPos += 23; } // // : - : // : R : // : - : // void RTaille1(int x, int y) // Largeur 16 { GM_Draw_Rectangle(x + 0, y - 19, 2, 20); GM_Draw_Rectangle(x + 0, y - 19, 11, 2); GM_Draw_Rectangle(x + 0, y - 9, 10, 2); GM_Draw_Rectangle(x + 10, y - 18, 2, 2); GM_Draw_Rectangle(x + 11, y - 17, 2, 2); GM_Draw_Rectangle(x + 12, y - 16, 2, 6); GM_Draw_Rectangle(x + 11, y - 10, 2, 2); GM_Draw_Rectangle(x + 10, y - 9, 2, 2); GM_Draw_Rectangle(x + 8, y - 8, 3, 1); GM_Draw_Rectangle(x + 9, y - 7, 2, 1); GM_Draw_Rectangle(x + 10, y - 6, 2, 1); GM_Draw_Rectangle(x + 10, y - 5, 3, 1); GM_Draw_Rectangle(x + 11, y - 4, 3, 1); GM_Draw_Rectangle(x + 12, y - 3, 2, 1); GM_Draw_Rectangle(x + 13, y - 2, 2, 1); GM_Draw_Rectangle(x + 13, y - 1, 3, 1); GM_Draw_Rectangle(x + 14, y - 0, 2, 1); xPos += 18; } // // : - : // : S : // : - : // void STaille1(int x, int y) // Largeur 18 { GM_Draw_Rectangle(x + 0, y - 6, 2, 3); GM_Draw_Rectangle(x + 1, y - 4, 2, 2); GM_Draw_Rectangle(x + 2, y - 3, 2, 2); GM_Draw_Rectangle(x + 3, y - 2, 2, 2); GM_Draw_Rectangle(x + 5, y - 1, 7, 2); GM_Draw_Rectangle(x + 12, y - 2, 2, 2); GM_Draw_Rectangle(x + 13, y - 3, 2, 2); GM_Draw_Rectangle(x + 14, y - 7, 2, 4); GM_Draw_Rectangle(x + 13, y - 7, 3, 1); GM_Draw_Rectangle(x + 11, y - 8, 4, 1); GM_Draw_Rectangle(x + 7, y - 9, 7, 1); GM_Draw_Rectangle(x + 4, y - 10, 9, 1); GM_Draw_Rectangle(x + 2, y - 11, 8, 1); GM_Draw_Rectangle(x + 1, y - 12, 3, 1); GM_Draw_Rectangle(x + 1, y - 16, 2, 4); GM_Draw_Rectangle(x + 2, y - 17, 2, 6); GM_Draw_Rectangle(x + 3, y - 18, 2, 2); GM_Draw_Rectangle(x + 5, y - 19, 8, 2); GM_Draw_Rectangle(x + 13, y - 18, 2, 2); GM_Draw_Rectangle(x + 14, y - 16, 2, 2); xPos += 18; } // // : - : // : T : // : - : // void TTaille1(int x, int y) // Largeur 16 { GM_Draw_Rectangle(x + 0, y - 19, 14, 2); GM_Draw_Rectangle(x + 6, y - 19, 2, 20); xPos += 16; } // // : - : // : U : // : - : // void UTaille1(int x, int y) // Largeur 17 { GM_Draw_Rectangle(x + 0, y - 19, 2, 16); GM_Draw_Rectangle(x + 1, y - 4, 2, 3); GM_Draw_Rectangle(x + 2, y - 2, 3, 2); GM_Draw_Rectangle(x + 4, y - 1, 7, 2); GM_Draw_Rectangle(x + 10, y - 2, 3, 2); GM_Draw_Rectangle(x + 12, y - 4, 2, 3); GM_Draw_Rectangle(x + 13, y - 19, 2, 16); xPos += 19; } // // : - : // : V : // : - : // void VTaille1(int x, int y) // Largeur 19 { GM_Draw_Rectangle(x + 0, y - 19, 2, 2); GM_Draw_Rectangle(x + 1, y - 18, 2, 4); GM_Draw_Rectangle(x + 2, y - 15, 2, 3); GM_Draw_Rectangle(x + 3, y - 12, 2, 3); GM_Draw_Rectangle(x + 4, y - 10, 2, 4); GM_Draw_Rectangle(x + 5, y - 7, 2, 3); GM_Draw_Rectangle(x + 6, y - 4, 2, 3); GM_Draw_Rectangle(x + 7, y - 2, 3, 3); GM_Draw_Rectangle(x + 9, y - 4, 2, 3); GM_Draw_Rectangle(x + 10, y - 7, 2, 3); GM_Draw_Rectangle(x + 11, y - 10, 2, 4); GM_Draw_Rectangle(x + 12, y - 12, 2, 3); GM_Draw_Rectangle(x + 13, y - 15, 2, 3); GM_Draw_Rectangle(x + 14, y - 18, 2, 4); GM_Draw_Rectangle(x + 15, y - 19, 2, 2); xPos += 19; } // // : - : // : W : // : - : // void WTaille1(int x, int y) // Largeur 28 { GM_Draw_Rectangle(x + 0, y - 19, 2, 2); GM_Draw_Rectangle(x + 1, y - 17, 2, 4); GM_Draw_Rectangle(x + 2, y - 13, 2, 4); GM_Draw_Rectangle(x + 3, y - 10, 2, 5); GM_Draw_Rectangle(x + 4, y - 6, 2, 4); GM_Draw_Rectangle(x + 5, y - 2, 3, 3); GM_Draw_Rectangle(x + 7, y - 6, 2, 4); GM_Draw_Rectangle(x + 8, y - 10, 2, 4); GM_Draw_Rectangle(x + 9, y - 14, 2, 4); GM_Draw_Rectangle(x + 10, y - 17, 2, 3); GM_Draw_Rectangle(x + 11, y - 19, 3, 2); GM_Draw_Rectangle(x + 13, y - 19, 2, 2); GM_Draw_Rectangle(x + 14, y - 17, 2, 4); GM_Draw_Rectangle(x + 15, y - 13, 2, 4); GM_Draw_Rectangle(x + 16, y - 10, 2, 5); GM_Draw_Rectangle(x + 17, y - 6, 2, 4); GM_Draw_Rectangle(x + 18, y - 2, 3, 3); GM_Draw_Rectangle(x + 20, y - 6, 2, 4); GM_Draw_Rectangle(x + 21, y - 10, 2, 4); GM_Draw_Rectangle(x + 22, y - 14, 2, 4); GM_Draw_Rectangle(x + 23, y - 17, 2, 3); GM_Draw_Rectangle(x + 24, y - 19, 2, 2); xPos += 28; } // // : - : // : X : // : - : // void XTaille1(int x, int y) // Largeur 19 { GM_Draw_Rectangle(x + 0, y - 0, 3, 1); GM_Draw_Rectangle(x + 1, y - 1, 3, 1); GM_Draw_Rectangle(x + 2, y - 3, 3, 2); GM_Draw_Rectangle(x + 3, y - 4, 3, 1); GM_Draw_Rectangle(x + 4, y - 6, 3, 2); GM_Draw_Rectangle(x + 5, y - 7, 3, 1); GM_Draw_Rectangle(x + 6, y - 8, 2, 1); GM_Draw_Rectangle(x + 7, y - 11, 4, 3); GM_Draw_Rectangle(x + 6, y - 12, 2, 1); GM_Draw_Rectangle(x + 5, y - 14, 3, 2); GM_Draw_Rectangle(x + 4, y - 15, 3, 1); GM_Draw_Rectangle(x + 3, y - 16, 3, 1); GM_Draw_Rectangle(x + 3, y - 17, 2, 1); GM_Draw_Rectangle(x + 2, y - 18, 3, 1); GM_Draw_Rectangle(x + 1, y - 19, 3, 1); GM_Draw_Rectangle(x + 14, y - 0, 3, 1); GM_Draw_Rectangle(x + 13, y - 1, 3, 1); GM_Draw_Rectangle(x + 13, y - 3, 2, 3); GM_Draw_Rectangle(x + 12, y - 3, 3, 1); GM_Draw_Rectangle(x + 11, y - 4, 3, 1); GM_Draw_Rectangle(x + 10, y - 6, 3, 2); GM_Draw_Rectangle(x + 9, y - 7, 3, 1); GM_Draw_Rectangle(x + 9, y - 8, 2, 1); GM_Draw_Rectangle(x + 9, y - 12, 2, 1); GM_Draw_Rectangle(x + 9, y - 13, 3, 2); GM_Draw_Rectangle(x + 10, y - 14, 3, 1); GM_Draw_Rectangle(x + 11, y - 15, 3, 1); GM_Draw_Rectangle(x + 12, y - 16, 3, 1); GM_Draw_Rectangle(x + 13, y - 17, 2, 1); GM_Draw_Rectangle(x + 13, y - 18, 3, 1); GM_Draw_Rectangle(x + 14, y - 19, 3, 1); xPos += 19; } // // : - : // : Y : // : - : // void YTaille1(int x, int y) // Largeur 19 { GM_Draw_Rectangle(x + 0, y - 19, 2, 1); GM_Draw_Rectangle(x + 1, y - 18, 2, 1); GM_Draw_Rectangle(x + 2, y - 17, 2, 2); GM_Draw_Rectangle(x + 3, y - 15, 2, 2); GM_Draw_Rectangle(x + 4, y - 13, 3, 1); GM_Draw_Rectangle(x + 5, y - 12, 2, 2); GM_Draw_Rectangle(x + 6, y - 10, 4, 2); GM_Draw_Rectangle(x + 7, y - 8, 2, 9); GM_Draw_Rectangle(x + 9, y - 12, 2, 2); GM_Draw_Rectangle(x + 9, y - 13, 3, 1); GM_Draw_Rectangle(x + 10, y - 14, 3, 1); GM_Draw_Rectangle(x + 11, y - 15, 2, 1); GM_Draw_Rectangle(x + 11, y - 16, 3, 1); GM_Draw_Rectangle(x + 12, y - 17, 2, 1); GM_Draw_Rectangle(x + 12, y - 18, 3, 1); GM_Draw_Rectangle(x + 13, y - 19, 3, 1); xPos += 19; } // // : - : // : Z : // : - : // void ZTaille1(int x, int y) // Largeur 18 { GM_Draw_Rectangle(x + 0, y - 19, 15, 2); GM_Draw_Rectangle(x + 0, y - 1, 15, 2); GM_Draw_Rectangle(x + 1, y - 2, 2, 1); GM_Draw_Rectangle(x + 2, y - 3, 2, 1); GM_Draw_Rectangle(x + 2, y - 4, 3, 1); GM_Draw_Rectangle(x + 3, y - 5, 3, 1); GM_Draw_Rectangle(x + 4, y - 6, 2, 1); GM_Draw_Rectangle(x + 5, y - 7, 2, 1); GM_Draw_Rectangle(x + 6, y - 8, 2, 1); GM_Draw_Rectangle(x + 6, y - 9, 3, 1); GM_Draw_Rectangle(x + 7, y - 10, 3, 1); GM_Draw_Rectangle(x + 8, y - 11, 2, 1); GM_Draw_Rectangle(x + 9, y - 12, 2, 1); GM_Draw_Rectangle(x + 9, y - 13, 3, 1); GM_Draw_Rectangle(x + 10, y - 14, 3, 1); GM_Draw_Rectangle(x + 11, y - 15, 2, 1); GM_Draw_Rectangle(x + 12, y - 16, 2, 1); GM_Draw_Rectangle(x + 13, y - 17, 2, 1); xPos += 18; } // // : ------------ : // : LES CHIFFRES : // : ------------ : // // // : --- : // : 1 : // : --- : // void Led1Taille2(int x, int y) { GM_Draw_Rectangle(x + 24, y - 44, 2, 14); // B GM_Draw_Rectangle(x + 26, y - 46, 2, 18); GM_Draw_Rectangle(x + 28, y - 48, 2, 22); GM_Draw_Rectangle(x + 24, y - 20, 2, 14); // C GM_Draw_Rectangle(x + 26, y - 22, 2, 18); GM_Draw_Rectangle(x + 28, y - 24, 1, 22); xPos += 21; } void Led1Taille3(int x, int y) { GM_Draw_Rectangle(x + 48, y - 88, 4, 28); // B GM_Draw_Rectangle(x + 52, y - 92, 4, 36); GM_Draw_Rectangle(x + 56, y - 96, 4, 44); GM_Draw_Rectangle(x + 48, y - 40, 4, 28); // C GM_Draw_Rectangle(x + 52, y - 44, 4, 36); GM_Draw_Rectangle(x + 56, y - 48, 4, 44); } // // : --- : // : 2 : // : --- : // void Led2Taille2(int x, int y) { GM_Draw_Rectangle(x + 4, y - 52, 22, 2); // A GM_Draw_Rectangle(x + 2, y - 50, 26, 2); GM_Draw_Rectangle(x + 4, y - 48, 22, 2); GM_Draw_Rectangle(x + 24, y - 44, 2, 14); // B GM_Draw_Rectangle(x + 26, y - 46, 2, 18); GM_Draw_Rectangle(x + 28, y - 48, 2, 22); GM_Draw_Rectangle(x + 4, y - 0, 22, 2); // D GM_Draw_Rectangle(x + 2, y - 2, 26, 2); GM_Draw_Rectangle(x + 4, y - 4, 22, 2); GM_Draw_Rectangle(x + 0, y - 24, 2, 22); // E GM_Draw_Rectangle(x + 2, y - 22, 2, 18); GM_Draw_Rectangle(x + 4, y - 20, 2, 14); GM_Draw_Rectangle(x + 4, y - 28, 22, 2); // G GM_Draw_Rectangle(x + 2, y - 26, 26, 2); GM_Draw_Rectangle(x + 4, y - 24, 22, 2); xPos += 21; } void Led2Taille3(int x, int y) { GM_Draw_Rectangle(x + 8, y - 104, 44, 4); // A GM_Draw_Rectangle(x + 4, y - 100, 52, 4); GM_Draw_Rectangle(x + 8, y - 96, 44, 4); GM_Draw_Rectangle(x + 48, y - 88, 4, 28); // B GM_Draw_Rectangle(x + 52, y - 92, 4, 36); GM_Draw_Rectangle(x + 56, y - 96, 4, 44); GM_Draw_Rectangle(x + 8, y - 0, 44, 4); // D GM_Draw_Rectangle(x + 4, y - 4, 52, 4); GM_Draw_Rectangle(x + 8, y - 8, 44, 4); GM_Draw_Rectangle(x + 0, y - 48, 4, 44); // E GM_Draw_Rectangle(x + 4, y - 44, 4, 36); GM_Draw_Rectangle(x + 8, y - 40, 4, 28); GM_Draw_Rectangle(x + 8, y - 56, 44, 4); // G GM_Draw_Rectangle(x + 4, y - 52, 52, 4); GM_Draw_Rectangle(x + 8, y - 48, 44, 4); } // // : --- : // : 3 : // : --- : // void Led3Taille2(int x, int y) { GM_Draw_Rectangle(x + 4, y - 52, 22, 2); // A GM_Draw_Rectangle(x + 2, y - 50, 26, 2); GM_Draw_Rectangle(x + 4, y - 48, 22, 2); GM_Draw_Rectangle(x + 24, y - 44, 2, 14); // B GM_Draw_Rectangle(x + 26, y - 46, 2, 18); GM_Draw_Rectangle(x + 28, y - 48, 2, 22); GM_Draw_Rectangle(x + 24, y - 20, 2, 14); // C GM_Draw_Rectangle(x + 26, y - 22, 2, 18); GM_Draw_Rectangle(x + 28, y - 24, 2, 22); GM_Draw_Rectangle(x + 4, y - 0, 22, 2); // D GM_Draw_Rectangle(x + 2, y - 2, 26, 2); GM_Draw_Rectangle(x + 4, y - 4, 22, 2); GM_Draw_Rectangle(x + 4, y - 28, 22, 2); // G GM_Draw_Rectangle(x + 2, y - 26, 26, 2); GM_Draw_Rectangle(x + 4, y - 24, 22, 2); xPos += 21; } void Led3Taille3(int x, int y) { GM_Draw_Rectangle(x + 8, y - 104, 44, 4); // A GM_Draw_Rectangle(x + 4, y - 100, 52, 4); GM_Draw_Rectangle(x + 8, y - 96, 44, 4); GM_Draw_Rectangle(x + 48, y - 88, 4, 28); // B GM_Draw_Rectangle(x + 52, y - 92, 4, 36); GM_Draw_Rectangle(x + 56, y - 96, 4, 44); GM_Draw_Rectangle(x + 48, y - 40, 4, 28); // C GM_Draw_Rectangle(x + 52, y - 44, 4, 36); GM_Draw_Rectangle(x + 56, y - 48, 4, 44); GM_Draw_Rectangle(x + 8, y - 0, 44, 4); // D GM_Draw_Rectangle(x + 4, y - 4, 52, 4); GM_Draw_Rectangle(x + 8, y - 8, 44, 4); GM_Draw_Rectangle(x + 8, y - 56, 44, 4); // G GM_Draw_Rectangle(x + 4, y - 52, 52, 4); GM_Draw_Rectangle(x + 8, y - 48, 44, 4); } // // : --- : // : 4 : // : --- : // void Led4Taille2(int x, int y) { GM_Draw_Rectangle(x + 24, y - 44, 2, 14); // B GM_Draw_Rectangle(x + 26, y - 46, 2, 18); GM_Draw_Rectangle(x + 28, y - 48, 2, 22); GM_Draw_Rectangle(x + 24, y - 20, 2, 14); // C GM_Draw_Rectangle(x + 26, y - 22, 2, 18); GM_Draw_Rectangle(x + 28, y - 24, 1, 22); GM_Draw_Rectangle(x + 0, y - 48, 2, 22); // F GM_Draw_Rectangle(x + 2, y - 46, 2, 18); GM_Draw_Rectangle(x + 4, y - 44, 2, 14); GM_Draw_Rectangle(x + 4, y - 28, 22, 2); // G GM_Draw_Rectangle(x + 2, y - 26, 26, 2); GM_Draw_Rectangle(x + 4, y - 24, 22, 2); xPos += 21; } void Led4Taille3(int x, int y) { GM_Draw_Rectangle(x + 48, y - 88, 4, 28); // B GM_Draw_Rectangle(x + 52, y - 92, 4, 36); GM_Draw_Rectangle(x + 56, y - 96, 4, 44); GM_Draw_Rectangle(x + 48, y - 40, 4, 28); // C GM_Draw_Rectangle(x + 52, y - 44, 4, 36); GM_Draw_Rectangle(x + 56, y - 48, 4, 44); GM_Draw_Rectangle(x + 0, y - 96, 4, 44); // F GM_Draw_Rectangle(x + 4, y - 92, 4, 36); GM_Draw_Rectangle(x + 8, y - 88, 4, 28); GM_Draw_Rectangle(x + 8, y - 56, 44, 4); // G GM_Draw_Rectangle(x + 4, y - 52, 52, 4); GM_Draw_Rectangle(x + 8, y - 48, 44, 4); } // // : --- : // : 5 : // : --- : // void Led5Taille2(int x, int y) { GM_Draw_Rectangle(x + 4, y - 52, 22, 2); // A GM_Draw_Rectangle(x + 2, y - 50, 26, 2); GM_Draw_Rectangle(x + 4, y - 48, 22, 2); GM_Draw_Rectangle(x + 24, y - 20, 2, 14); // C GM_Draw_Rectangle(x + 26, y - 22, 2, 18); GM_Draw_Rectangle(x + 28, y - 24, 2, 22); GM_Draw_Rectangle(x + 4, y - 0, 22, 2); // D GM_Draw_Rectangle(x + 2, y - 2, 26, 2); GM_Draw_Rectangle(x + 4, y - 4, 22, 2); GM_Draw_Rectangle(x + 0, y - 48, 2, 22); // F GM_Draw_Rectangle(x + 2, y - 46, 2, 18); GM_Draw_Rectangle(x + 4, y - 44, 2, 14); GM_Draw_Rectangle(x + 4, y - 28, 22, 2); // G GM_Draw_Rectangle(x + 2, y - 26, 26, 2); GM_Draw_Rectangle(x + 4, y - 24, 22, 2); xPos += 21; } void Led5Taille3(int x, int y) { GM_Draw_Rectangle(x + 8, y - 104, 44, 4); // A GM_Draw_Rectangle(x + 4, y - 100, 52, 4); GM_Draw_Rectangle(x + 8, y - 96, 44, 4); GM_Draw_Rectangle(x + 48, y - 40, 4, 28); // C GM_Draw_Rectangle(x + 52, y - 44, 4, 36); GM_Draw_Rectangle(x + 56, y - 48, 4, 44); GM_Draw_Rectangle(x + 8, y - 0, 44, 4); // D GM_Draw_Rectangle(x + 4, y - 4, 52, 4); GM_Draw_Rectangle(x + 8, y - 8, 44, 4); GM_Draw_Rectangle(x + 0, y - 96, 4, 44); // F GM_Draw_Rectangle(x + 4, y - 92, 4, 36); GM_Draw_Rectangle(x + 8, y - 88, 4, 28); GM_Draw_Rectangle(x + 8, y - 56, 44, 4); // G GM_Draw_Rectangle(x + 4, y - 52, 52, 4); GM_Draw_Rectangle(x + 8, y - 48, 44, 4); } // // : --- : // : 6 : // : --- : // void Led6Taille2(int x, int y) { GM_Draw_Rectangle(x + 4, y - 52, 22, 2); // A GM_Draw_Rectangle(x + 2, y - 50, 26, 2); GM_Draw_Rectangle(x + 4, y - 48, 22, 2); GM_Draw_Rectangle(x + 24, y - 20, 2, 14); // C GM_Draw_Rectangle(x + 26, y - 22, 2, 18); GM_Draw_Rectangle(x + 28, y - 24, 2, 22); GM_Draw_Rectangle(x + 4, y - 0, 22, 2); // D GM_Draw_Rectangle(x + 2, y - 2, 26, 2); GM_Draw_Rectangle(x + 4, y - 4, 22, 2); GM_Draw_Rectangle(x + 0, y - 24, 2, 22); // E GM_Draw_Rectangle(x + 2, y - 22, 2, 18); GM_Draw_Rectangle(x + 4, y - 20, 2, 14); GM_Draw_Rectangle(x + 0, y - 48, 2, 22); // F GM_Draw_Rectangle(x + 2, y - 46, 2, 18); GM_Draw_Rectangle(x + 4, y - 44, 2, 14); GM_Draw_Rectangle(x + 4, y - 28, 22, 2); // G GM_Draw_Rectangle(x + 2, y - 26, 26, 2); GM_Draw_Rectangle(x + 4, y - 24, 22, 2); xPos += 21; } void Led6Taille3(int x, int y) { GM_Draw_Rectangle(x + 8, y - 104, 44, 4); // A GM_Draw_Rectangle(x + 4, y - 100, 52, 4); GM_Draw_Rectangle(x + 8, y - 96, 44, 4); GM_Draw_Rectangle(x + 48, y - 40, 4, 28); // C GM_Draw_Rectangle(x + 52, y - 44, 4, 36); GM_Draw_Rectangle(x + 56, y - 48, 4, 44); GM_Draw_Rectangle(x + 8, y - 0, 44, 4); // D GM_Draw_Rectangle(x + 4, y - 4, 52, 4); GM_Draw_Rectangle(x + 8, y - 8, 44, 4); GM_Draw_Rectangle(x + 0, y - 48, 4, 44); // E GM_Draw_Rectangle(x + 4, y - 44, 4, 36); GM_Draw_Rectangle(x + 8, y - 40, 4, 28); GM_Draw_Rectangle(x + 0, y - 96, 4, 44); // F GM_Draw_Rectangle(x + 4, y - 92, 4, 36); GM_Draw_Rectangle(x + 8, y - 88, 4, 28); GM_Draw_Rectangle(x + 8, y - 56, 44, 4); // G GM_Draw_Rectangle(x + 4, y - 52, 52, 4); GM_Draw_Rectangle(x + 8, y - 48, 44, 4); } // // : --- : // : 7 : // : --- : // void Led7Taille2(int x, int y) { GM_Draw_Rectangle(x + 4, y - 52, 22, 2); // A GM_Draw_Rectangle(x + 2, y - 50, 26, 2); GM_Draw_Rectangle(x + 4, y - 48, 22, 2); GM_Draw_Rectangle(x + 24, y - 44, 2, 14); // B GM_Draw_Rectangle(x + 26, y - 46, 2, 18); GM_Draw_Rectangle(x + 28, y - 48, 2, 22); GM_Draw_Rectangle(x + 24, y - 20, 2, 14); // C GM_Draw_Rectangle(x + 26, y - 22, 2, 18); GM_Draw_Rectangle(x + 28, y - 24, 2, 22); xPos += 21; } void Led7Taille3(int x, int y) { GM_Draw_Rectangle(x + 8, y - 104, 44, 4); // A GM_Draw_Rectangle(x + 4, y - 100, 52, 4); GM_Draw_Rectangle(x + 8, y - 96, 44, 4); GM_Draw_Rectangle(x + 48, y - 88, 4, 28); // B GM_Draw_Rectangle(x + 52, y - 92, 4, 36); GM_Draw_Rectangle(x + 56, y - 96, 4, 44); GM_Draw_Rectangle(x + 48, y - 40, 4, 28); // C GM_Draw_Rectangle(x + 52, y - 44, 4, 36); GM_Draw_Rectangle(x + 56, y - 48, 4, 44); } // // : --- : // : 8 : // : --- : // void Led8Taille2(int x, int y) { GM_Draw_Rectangle(x + 4, y - 52, 22, 2); // A GM_Draw_Rectangle(x + 2, y - 50, 26, 2); GM_Draw_Rectangle(x + 4, y - 48, 21, 2); GM_Draw_Rectangle(x + 24, y - 44, 2, 14); // B GM_Draw_Rectangle(x + 26, y - 46, 2, 18); GM_Draw_Rectangle(x + 28, y - 48, 2, 22); GM_Draw_Rectangle(x + 24, y - 20, 2, 14); // C GM_Draw_Rectangle(x + 26, y - 22, 2, 18); GM_Draw_Rectangle(x + 28, y - 24, 2, 22); GM_Draw_Rectangle(x + 4, y - 0, 22, 2); // D GM_Draw_Rectangle(x + 2, y - 2, 26, 2); GM_Draw_Rectangle(x + 4, y - 4, 22, 2); GM_Draw_Rectangle(x + 0, y - 24, 2, 22); // E GM_Draw_Rectangle(x + 2, y - 22, 2, 18); GM_Draw_Rectangle(x + 4, y - 20, 2, 14); GM_Draw_Rectangle(x + 0, y - 48, 2, 22); // F GM_Draw_Rectangle(x + 2, y - 46, 2, 18); GM_Draw_Rectangle(x + 4, y - 44, 2, 14); GM_Draw_Rectangle(x + 4, y - 28, 22, 2); // G GM_Draw_Rectangle(x + 2, y - 26, 26, 2); GM_Draw_Rectangle(x + 4, y - 24, 22, 2); xPos += 21; } void Led8Taille3(int x, int y) { GM_Draw_Rectangle(x + 8, y - 104, 44, 4); // A GM_Draw_Rectangle(x + 4, y - 100, 52, 4); GM_Draw_Rectangle(x + 8, y - 96, 44, 4); GM_Draw_Rectangle(x + 48, y - 88, 4, 28); // B GM_Draw_Rectangle(x + 52, y - 92, 4, 36); GM_Draw_Rectangle(x + 56, y - 96, 4, 44); GM_Draw_Rectangle(x + 48, y - 40, 4, 28); // C GM_Draw_Rectangle(x + 52, y - 44, 4, 36); GM_Draw_Rectangle(x + 56, y - 48, 4, 44); GM_Draw_Rectangle(x + 8, y - 0, 44, 4); // D GM_Draw_Rectangle(x + 4, y - 4, 52, 4); GM_Draw_Rectangle(x + 8, y - 8, 44, 4); GM_Draw_Rectangle(x + 0, y - 48, 4, 44); // E GM_Draw_Rectangle(x + 4, y - 44, 4, 36); GM_Draw_Rectangle(x + 8, y - 40, 4, 28); GM_Draw_Rectangle(x + 0, y - 96, 4, 44); // F GM_Draw_Rectangle(x + 4, y - 92, 4, 36); GM_Draw_Rectangle(x + 8, y - 88, 4, 28); GM_Draw_Rectangle(x + 8, y - 56, 44, 4); // G GM_Draw_Rectangle(x + 4, y - 52, 52, 4); GM_Draw_Rectangle(x + 8, y - 48, 44, 4); } // // : --- : // : 9 : // : --- : // void Led9Taille2(int x, int y) { GM_Draw_Rectangle(x + 4, y - 52, 22, 2); // A GM_Draw_Rectangle(x + 2, y - 50, 26, 2); GM_Draw_Rectangle(x + 4, y - 48, 22, 2); GM_Draw_Rectangle(x + 24, y - 44, 2, 14); // B GM_Draw_Rectangle(x + 26, y - 46, 2, 18); GM_Draw_Rectangle(x + 28, y - 48, 2, 22); GM_Draw_Rectangle(x + 24, y - 20, 2, 14); // C GM_Draw_Rectangle(x + 26, y - 22, 2, 18); GM_Draw_Rectangle(x + 28, y - 24, 2, 22); GM_Draw_Rectangle(x + 4, y - 0, 22, 2); // D GM_Draw_Rectangle(x + 2, y - 2, 26, 2); GM_Draw_Rectangle(x + 4, y - 4, 22, 2); GM_Draw_Rectangle(x + 0, y - 48, 2, 22); // F GM_Draw_Rectangle(x + 2, y - 46, 2, 18); GM_Draw_Rectangle(x + 4, y - 44, 2, 14); GM_Draw_Rectangle(x + 4, y - 28, 22, 2); // G GM_Draw_Rectangle(x + 2, y - 26, 26, 2); GM_Draw_Rectangle(x + 4, y - 24, 22, 2); xPos += 21; } void Led9Taille3(int x, int y) { GM_Draw_Rectangle(x + 8, y - 104, 44, 4); // A GM_Draw_Rectangle(x + 4, y - 100, 52, 4); GM_Draw_Rectangle(x + 8, y - 96, 44, 4); GM_Draw_Rectangle(x + 48, y - 88, 4, 28); // B GM_Draw_Rectangle(x + 52, y - 92, 4, 36); GM_Draw_Rectangle(x + 56, y - 96, 4, 44); GM_Draw_Rectangle(x + 48, y - 40, 4, 28); // C GM_Draw_Rectangle(x + 52, y - 44, 4, 36); GM_Draw_Rectangle(x + 56, y - 48, 4, 44); GM_Draw_Rectangle(x + 8, y - 0, 44, 4); // D GM_Draw_Rectangle(x + 4, y - 4, 52, 4); GM_Draw_Rectangle(x + 8, y - 8, 44, 4); GM_Draw_Rectangle(x + 0, y - 96, 4, 44); // F GM_Draw_Rectangle(x + 4, y - 92, 4, 36); GM_Draw_Rectangle(x + 8, y - 88, 4, 28); GM_Draw_Rectangle(x + 8, y - 56, 44, 4); // G GM_Draw_Rectangle(x + 4, y - 52, 52, 4); GM_Draw_Rectangle(x + 8, y - 48, 44, 4); } // // : --- : // : 0 : // : --- : // void Led0Taille2(int x, int y) { GM_Draw_Rectangle(x + 4, y - 52, 22, 2); // A GM_Draw_Rectangle(x + 0, y - 50, 26, 2); GM_Draw_Rectangle(x + 4, y - 48, 22, 2); GM_Draw_Rectangle(x + 24, y - 44, 2, 14); // B GM_Draw_Rectangle(x + 26, y - 46, 2, 18); GM_Draw_Rectangle(x + 28, y - 48, 2, 22); GM_Draw_Rectangle(x + 24, y - 20, 2, 14); // C GM_Draw_Rectangle(x + 26, y - 22, 2, 18); GM_Draw_Rectangle(x + 28, y - 24, 2, 22); GM_Draw_Rectangle(x + 4, y - 0, 22, 2); // D GM_Draw_Rectangle(x + 2, y - 2, 26, 2); GM_Draw_Rectangle(x + 4, y - 4, 22, 2); GM_Draw_Rectangle(x + 0, y - 24, 2, 22); // E GM_Draw_Rectangle(x + 2, y - 22, 2, 18); GM_Draw_Rectangle(x + 4, y - 20, 2, 14); GM_Draw_Rectangle(x + 0, y - 48, 2, 22); // F GM_Draw_Rectangle(x + 2, y - 46, 2, 18); GM_Draw_Rectangle(x + 4, y - 44, 2, 14); xPos += 21; } void Led0Taille3(int x, int y) { GM_Draw_Rectangle(x + 8, y - 104, 44, 4); // A GM_Draw_Rectangle(x + 4, y - 100, 52, 4); GM_Draw_Rectangle(x + 8, y - 96, 44, 4); GM_Draw_Rectangle(x + 48, y - 88, 4, 28); // B GM_Draw_Rectangle(x + 52, y - 92, 4, 36); GM_Draw_Rectangle(x + 56, y - 96, 4, 44); GM_Draw_Rectangle(x + 48, y - 40, 4, 28); // C GM_Draw_Rectangle(x + 52, y - 44, 4, 36); GM_Draw_Rectangle(x + 56, y - 48, 4, 44); GM_Draw_Rectangle(x + 8, y - 0, 44, 4); // D GM_Draw_Rectangle(x + 4, y - 4, 52, 4); GM_Draw_Rectangle(x + 8, y - 8, 44, 4); GM_Draw_Rectangle(x + 0, y - 48, 4, 44); // E GM_Draw_Rectangle(x + 4, y - 44, 4, 36); GM_Draw_Rectangle(x + 8, y - 40, 4, 28); GM_Draw_Rectangle(x + 0, y - 96, 4, 44); // F GM_Draw_Rectangle(x + 4, y - 92, 4, 36); GM_Draw_Rectangle(x + 8, y - 88, 4, 28); } // // : ---------------- : // : LA PONCTUATION : // : ---------------- : // // : ------------- : // : Deux points : // : ------------- : // void LedDeuxPointsTaille2(int x, int y) { GM_Draw_Rectangle(x + 12, y - 20, 6, 4); GM_Draw_Rectangle(x + 12, y - 34, 6, 4); } void LedDeuxPointsTaille3(int x, int y) { GM_Draw_Rectangle(x + 24, y - 40, 12, 8); GM_Draw_Rectangle(x + 24, y - 68, 12, 8); } // // : --------------- : // : Trait d'union : // : --------------- : // void TraitDUnionTaille1(int x, int y) { GM_Draw_Rectangle(x + 2, y - 10, 12, 2); xPos += 19; } void TraitDUnionTaille2(int x, int y) { GM_Draw_Rectangle(x + 4, y - 20, 24, 4); xPos += 38; } // // : ----------- : // : Apostrophe : // : ----------- : // void ApostropheTaille1(int x, int y) { GM_Draw_Rectangle(x + 2, y - 19, 4, 6); xPos += 8; } void ApostropheTaille2(int x, int y) { GM_Draw_Rectangle(x + 4, y - 38, 8, 12); xPos += 38; } // // : ------- : // : Espace : // : ------- : // void EspaceTaille1(int x, int y) { xPos += 10; } void EspaceTaille2(int x, int y) { xPos += 20; }