Add power flag

This commit is contained in:
fvanroie 2021-05-08 03:01:33 +02:00
parent 452b086a8e
commit 74439711b1

View File

@ -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);