Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
Diff: Horloges/horloge.cpp
- Revision:
- 32:8ad4b5555e6e
- Parent:
- 29:55d27fb3eb34
- Child:
- 33:31271a36a9a4
diff -r 1e2dafd5a5a1 -r 8ad4b5555e6e Horloges/horloge.cpp
--- a/Horloges/horloge.cpp Thu May 16 08:07:06 2019 +0000
+++ b/Horloges/horloge.cpp Thu May 16 08:50:03 2019 +0000
@@ -1,6 +1,6 @@
#include "horloge.h"
-char VRGL_AFFICHAGE_ELEMENTS = 0; //Cette variable globale vaut 1 si on affiche les éléments et vaut 0 sinon
+char VRGL_AFFICHAGE_ELEMENTS = 1; //Cette variable globale vaut 1 si on affiche les éléments et vaut 0 sinon
void H_ChangeHour(temps* moment,int mod){
if(mod){
@@ -42,7 +42,9 @@
void H_afficheHorlogeElemClean(temps mnt,int x,int y,int taille,long long int couleur,long long int fond){
if(VRGL_AFFICHAGE_ELEMENTS){
- ;
+ DisplayMatrixClean(x,y,BS_ElemHeure(mnt.heure),taille,couleur,fond);
+ DisplayMatrixClean(x + 11 * taille,y,BS_dotdot(),taille,couleur,fond);
+ DisplayMatrixClean(x + 19 * taille,y,BS_ElemMinute(mnt.minute),taille,couleur,fond);
}else{
BS_displayChiffre10Clean(x,y,mnt.heure,taille,couleur,fond);
DisplayMatrixClean(x + 11 * taille,y,BS_dotdot(),taille,couleur,fond);
@@ -77,7 +79,7 @@
for(int j=0;j<60;j++){
H_ChangeMinute(&tempsTest,1);
H_afficheHorlogeElemClean(tempsTest,50,50,4,0xFFA000E3,0xFFFFFFFF);
- wait(0.05);
+ wait(1);
}
}
}
