Ready to implement GPIO logic to manage relays
This commit is contained in:
26
esp32_device/main/relays.h
Normal file
26
esp32_device/main/relays.h
Normal 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
|
Reference in New Issue
Block a user