Ready to implement GPIO logic to manage relays

This commit is contained in:
2024-09-28 20:02:34 +02:00
parent e574bed96f
commit 274b7089d1
8 changed files with 86 additions and 6 deletions

View File

@ -0,0 +1,26 @@
/**
* Relays management
*/
#pragma once
#include <stddef.h>
#ifdef __cplusplus
extern "C"
{
#endif
/**
* Turn off all relays
*/
void relays_turn_off_all();
/**
* Turn on / off a relay
*/
void relays_set(int number, bool is_on);
#ifdef __cplusplus
}
#endif