| 1234567891011121314151617181920212223242526272829303132 |
- #ifndef __TESTEUR_H__
- #define __TESTEUR_H__
- #include <stdint.h>
- #define MINUTE (long)75
- #define DELAYLOOP (long)500
- #define NBPIN 11
- typedef struct {
- uint8_t num;
- uint8_t last;
- }newPin;
- uint8_t tab[MAXEEPROM];
- void initTabPin(void);
- const unsigned long intervalleMinimum = 5000; // durée minimale du signal haut en millisecondes
- const unsigned long intervalleMaximum = 15000; // durée maximale du signal haut en millisecondes
- const unsigned long intervalleAttenteMinimum = 6000000; // temps d'attente minimum entre les signaux en millisecondes (1 heure)
- const unsigned long intervalleAttenteMaximum = 172800000; // temps d'attente maximum entre les signaux en millisecondes (2 jours)
- unsigned long tempsPrecedent = 0;
- unsigned long tempsSignal = 0;
- unsigned long tempsAttente = 0;
- int nbSignaux = 0;
- uint8_t toogle(uint8_t pin);
- #endif
|