35 lines
512 B
C
35 lines
512 B
C
|
/*
|
||
|
* horlogeLepot.h
|
||
|
*
|
||
|
* Created: 28-11-17 13:18:01
|
||
|
* Author: Adrien
|
||
|
*/
|
||
|
|
||
|
|
||
|
#ifndef HORLOGELEPOT_H_
|
||
|
#define HORLOGELEPOT_H_
|
||
|
|
||
|
#ifndef __MAX7219_H__
|
||
|
#include "max7219.h"
|
||
|
#endif
|
||
|
|
||
|
class horloge
|
||
|
{
|
||
|
private:
|
||
|
max7219 *max;
|
||
|
unsigned long t;
|
||
|
uint8_t ar[4];
|
||
|
uint8_t heures, minutes;
|
||
|
int HHMM;
|
||
|
uint8_t decalageMinutes, decalageHeures; //Pour "synchronis?" sur la fonction millis
|
||
|
|
||
|
public:
|
||
|
horloge(max7219 *max);
|
||
|
void afficherHeur();
|
||
|
void configMinute();
|
||
|
void configHeure();
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
#endif /* HORLOGELEPOT_H_ */
|