mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Add power flag
This commit is contained in:
parent
452b086a8e
commit
74439711b1
@ -12,13 +12,14 @@ extern "C" {
|
||||
|
||||
struct hasp_gpio_config_t
|
||||
{
|
||||
uint8_t pin; // pin number
|
||||
uint8_t group; // groupid
|
||||
uint8_t type; // switch, button, ...
|
||||
uint8_t gpio_function; // INPUT, OUTPUT, PULLUP, etc
|
||||
uint8_t gpio_function : 8; // INPUT, OUTPUT, PULLUP, etc
|
||||
uint8_t pin : 8; // pin number
|
||||
uint8_t group : 6; // groupid
|
||||
uint8_t inverted : 1;
|
||||
uint8_t power : 1;
|
||||
uint8_t type; // switch, button, ...
|
||||
uint16_t val;
|
||||
uint16_t max;
|
||||
bool inverted;
|
||||
};
|
||||
|
||||
void gpioSetup(void);
|
||||
|
Loading…
x
Reference in New Issue
Block a user