2023-03-16 22:27:08 +00:00
|
|
|
#include "pico/stdlib.h"
|
|
|
|
|
2023-03-18 16:59:15 +00:00
|
|
|
#define CONTACTEUR_ACTIF 0
|
|
|
|
#define CONTACTEUR_INACTIF 1
|
|
|
|
|
2023-03-16 22:27:08 +00:00
|
|
|
void i2c_annexe_gestion(void);
|
|
|
|
void i2c_annexe_active_turbine(void);
|
|
|
|
void i2c_annexe_desactive_turbine(void);
|
|
|
|
|
|
|
|
void i2c_annexe_ouvre_porte(void);
|
|
|
|
void i2c_annexe_ferme_porte(void);
|
2023-04-24 19:51:19 +00:00
|
|
|
void i2c_annexe_mi_ferme_porte(void);
|
2023-03-16 22:27:08 +00:00
|
|
|
|
|
|
|
void i2c_annexe_active_propulseur(void);
|
|
|
|
void i2c_annexe_desactive_propulseur(void);
|
|
|
|
|
2023-04-23 13:55:55 +00:00
|
|
|
void i2c_annexe_envoie_score(uint8_t score);
|
|
|
|
|
2023-03-16 22:27:08 +00:00
|
|
|
uint8_t i2c_annexe_get_contacteur_butee_A(void);
|
|
|
|
uint8_t i2c_annexe_get_contacteur_butee_C(void);
|
|
|
|
|
|
|
|
uint8_t i2c_annexe_get_contacteur_longer_A(void);
|
|
|
|
uint8_t i2c_annexe_get_contacteur_longer_C(void);
|
2023-03-31 18:39:12 +00:00
|
|
|
|
2023-04-17 14:36:35 +00:00
|
|
|
void i2c_annexe_get_distances(uint8_t *distance_capteur_cm);
|
2023-05-01 19:02:08 +00:00
|
|
|
void i2c_annexe_couleur_balise(uint8_t couleur, uint16_t masque_led);
|
|
|
|
|
|
|
|
void i2c_annexe_active_deguisement(void);
|
2023-05-13 18:27:44 +00:00
|
|
|
void i2c_annexe_desactive_deguisement(void);
|
|
|
|
|
2023-05-19 22:15:08 +00:00
|
|
|
void i2c_annexe_plie_bras(void);
|
|
|
|
void i2c_annexe_deplie_bras(void);
|
|
|
|
|
2023-05-13 18:27:44 +00:00
|
|
|
uint8_t i2c_annexe_get_tension_batterie(void);
|