le test

Dependencies:   LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI

Committer:
ascheriit
Date:
Thu May 23 09:42:38 2019 +0000
Revision:
42:53780e5a6acb
Parent:
39:b069cf6be013
la connexion avec le pc est annulee.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ascheriit 24:682b9e68dca8 1 #include "Trace.h"
ascheriit 28:8c8b33336a4c 2 #include "codeurRotatifRelatif.h"
ascheriit 35:bda112796505 3 #include "Tick.h"
ascheriit 20:f3e8319b7899 4
ascheriit 20:f3e8319b7899 5 #ifndef DEF_H
ascheriit 20:f3e8319b7899 6 #define DEF_H
ascheriit 20:f3e8319b7899 7
ascheriit 20:f3e8319b7899 8 struct temps {
ascheriit 20:f3e8319b7899 9 char heure;
ascheriit 20:f3e8319b7899 10 char minute;
ascheriit 20:f3e8319b7899 11 };
ascheriit 20:f3e8319b7899 12
ascheriit 20:f3e8319b7899 13 #endif
ascheriit 20:f3e8319b7899 14
ascheriit 20:f3e8319b7899 15 //fonctions pour les réglages
ascheriit 26:6e4d3faa34fb 16 void H_ChangeHour(temps*,int); //permet de régler l'heure,en comptent le fait que il n'y en a que 24
ascheriit 26:6e4d3faa34fb 17 void H_ChangeMinute(temps*,int); //permet de régler la minute,en comptent le fait que il n'y en a que 60 et que les minutes font évoluer les heures
ascheriit 28:8c8b33336a4c 18 void H_reglage(temps* mnt,int x,int y,int taille,long long int couleur,long long int fond); //Cette fonction permet d'édider interactivement l'heure.
ascheriit 20:f3e8319b7899 19
ascheriit 20:f3e8319b7899 20 //fonctions pour l'affichage
ascheriit 27:86d38e8d3015 21 void H_afficheHorlogeElemClean(temps mnt,int x,int y,int taille,long long int couleur,long long int fond); //Affiche l'heure avec les éléments
ascheriit 33:31271a36a9a4 22 void H_afficheHorlogeElemTri(temps mnt,int x,int y,int taille,long long int couleur1,long long int couleur2,long long int couleur3,long long int fond); //Affiche l'heure avec les éléments avec 3 couleurs différentes , utile pour les réglages
ascheriit 35:bda112796505 23 int H_toogleElem(); //Permet de changer le mode d'affichage
ascheriit 35:bda112796505 24
ascheriit 35:bda112796505 25 //Fonctions pour le temps atuel
ascheriit 35:bda112796505 26 int H_updateHeure(temps* RT); //Permet de mêtre à jour l'heure. revoie 1 si l'heure est changée et 0 sinon.
ascheriit 39:b069cf6be013 27 void H_setTemps(temps* RT); //Pertmet de rêgler l'heure. TickPnt est reset pour que le temps ne monte pas d'un coup
ascheriit 25:004d58f42fbd 28
ascheriit 25:004d58f42fbd 29 //test
ascheriit 28:8c8b33336a4c 30 void H_test1(); //test du passage du temps
ascheriit 28:8c8b33336a4c 31 void H_test2(); //test des réglages