maxime bouillot / Mbed 2 deprecated testLucadeTHmaxBOUI

Dependencies:   LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI

Revision:
25:004d58f42fbd
Parent:
24:682b9e68dca8
Child:
26:6e4d3faa34fb
diff -r 682b9e68dca8 -r 004d58f42fbd Horloges/horloge.cpp
--- a/Horloges/horloge.cpp	Fri May 10 14:24:19 2019 +0000
+++ b/Horloges/horloge.cpp	Fri May 10 14:38:16 2019 +0000
@@ -34,7 +34,7 @@
     }
 }
 
-void h_afficheHorlogeElemClean(temps mnt,int x,int y,int taille,long long int couleur,long long int fond){
+void H_afficheHorlogeElemClean(temps mnt,int x,int y,int taille,long long int couleur,long long int fond){
     if(VRGL_AFFICHAGE_ELEMENTS){
         ;
     }else{
@@ -42,4 +42,20 @@
         DisplayMatrixClean(x + 17 * taille,y,BS_dotdot(),taille,couleur,fond);
         BS_displayChiffre100Clean(x + 26 * taille,y,mnt.minute,taille,couleur,fond);
     }
+}
+
+void H_test(){
+    temps tempsTest;
+    tempsTest.heure = 15;
+    tempsTest.minute = 01;
+    //H_afficheHorlogeElemClean(tempsTest,15,30,3,0xFFFF0000,0xFFFFFFFF);
+    //wait(5);
+    for(int i=0;i<48;i++){
+        tempsTest.heure = H_ChangeHour(tempsTest.heure,1);
+        for(int j=0;j<60;j++){
+            tempsTest.minute = H_ChangeMinute(tempsTest.minute,1);
+            H_afficheHorlogeElemClean(tempsTest,50,50,4,0xFFFF0000,0xFFFFFFFF);
+            wait(0.1);
+        }
+    }
 }
\ No newline at end of file