Robot Principal
26
Documentation du Club Robot INSA Rennes 2026
Chargement...
Recherche...
Aucune correspondance
ihm.h
Aller à la documentation de ce fichier.
1
//
2
// Created by boris on 5/1/25.
3
//
4
11
12
#ifndef IHM_H
13
#define IHM_H
14
15
#include <Arduino.h>
16
#include <Buttons.h>
17
18
#include "Logger.h"
19
26
#define BLEU_BTN_PIN PF7
27
#define JAUNE_BTN_PIN PF5
28
#define VERT_BTN_PIN PD2
29
#define ROUGE_BTN_PIN PD4
30
31
#define BLEU_LED_PIN PG3
32
#define JAUNE_LED_PIN PG2
33
#define VERT_LED_PIN PD5
34
#define ROUGE_LED_PIN PC9
35
36
#define END_STOP_BAS_PIN PE5
37
#define END_STOP_HAUT_PIN PD6
38
#define TIRETTE_PIN PD13
39
41
42
namespace
ihm {
43
44
inline
Logger ihmLogger = Logger(
"IHM"
);
45
46
void
init();
47
51
bool
etat_bleu();
55
bool
etat_jaune();
59
bool
etat_vert();
63
bool
etat_rouge();
64
65
bool
etat_lim_haut();
66
bool
etat_lim_bas();
70
bool
etat_tirette();
71
73
void
led_bleu(
bool
etat);
75
void
led_jaune(
bool
etat);
77
void
led_vert(
bool
etat);
79
void
led_rouge(
bool
etat);
80
82
void
led_bleu();
84
void
led_jaune();
86
void
led_vert();
88
void
led_rouge();
89
90
}
// ihm
91
92
#endif
//IHM_H
src
ihm
ihm.h
Généré par
1.13.2