CRINSA-team2025
V1
Documentation du Club Robot INSA Rennes 2025
Chargement...
Recherche...
Aucune correspondance
ihm.h
1
//
2
// Created by boris on 5/1/25.
3
//
4
5
#ifndef IHM_H
6
#define IHM_H
7
8
#include <Arduino.h>
9
#include <Buttons.h>
10
11
#include "Logger.h"
12
13
#define BLEU_BTN_PIN PF7
14
#define JAUNE_BTN_PIN PF5
15
#define VERT_BTN_PIN PD2
16
#define ROUGE_BTN_PIN PD4
17
18
#define BLEU_LED_PIN PG3
19
#define JAUNE_LED_PIN PG2
20
#define VERT_LED_PIN PD5
21
#define ROUGE_LED_PIN PC9
22
23
#define END_STOP_BAS_PIN PE5
24
#define END_STOP_HAUT_PIN PD6
25
#define TIRETTE_PIN PD13
26
27
28
namespace
ihm {
29
30
inline
Logger ihmLogger = Logger(
"IHM"
);
31
32
void
init();
33
37
bool
etat_bleu();
41
bool
etat_jaune();
45
bool
etat_vert();
49
bool
etat_rouge();
50
51
bool
etat_lim_haut();
52
bool
etat_lim_bas();
56
bool
etat_tirette();
57
59
void
led_bleu(
bool
etat);
61
void
led_jaune(
bool
etat);
63
void
led_vert(
bool
etat);
65
void
led_rouge(
bool
etat);
66
68
void
led_bleu();
70
void
led_jaune();
72
void
led_vert();
74
void
led_rouge();
75
76
}
// ihm
77
78
#endif
//IHM_H
src
ihm
ihm.h
Généré par
1.13.2