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
Horloges/horloge.cpp
- Committer:
 - ascheriit
 - Date:
 - 2019-05-10
 - Revision:
 - 24:682b9e68dca8
 - Parent:
 - 20:f3e8319b7899
 - Child:
 - 25:004d58f42fbd
 
File content as of revision 24:682b9e68dca8:
#include "horloge.h"
char VRGL_AFFICHAGE_ELEMENTS = 0; //Cette variable globale vaut 1 si on affiche les éléments et vaut 0 sinon
char H_ChangeHour(char heure,int mod){
    if(mod==1){
        if(heure==24){
            return 1;
        }else{
            return heure+1;
        }
    }else{
        if(heure==1){
            return 24;
        }else{
            return heure-1;
        }
    }
}
char H_ChangeMinute(char minute,int mod){
    if(mod==1){
        if(minute==60){
            return 1;
        }else{
            return minute+1;
        }
    }else{
        if(minute==1){
            return 60;
        }else{
            return minute-1;
        }
    }
}
void h_afficheHorlogeElemClean(temps mnt,int x,int y,int taille,long long int couleur,long long int fond){
    if(VRGL_AFFICHAGE_ELEMENTS){
        ;
    }else{
        BS_displayChiffre100Clean(x,y,mnt.heure,taille,couleur,fond);
        DisplayMatrixClean(x + 17 * taille,y,BS_dotdot(),taille,couleur,fond);
        BS_displayChiffre100Clean(x + 26 * taille,y,mnt.minute,taille,couleur,fond);
    }
}
            
    