Allow LED and Relay logic level to be inverted

This commit is contained in:
Pim van Pelt
2018-11-04 14:10:28 +01:00
parent b29edab495
commit 5a39c618ce
2 changed files with 12 additions and 5 deletions

View File

@ -12,7 +12,9 @@
struct channel_t {
uint8_t button_gpio;
uint8_t led_gpio;
bool led_invert;
uint8_t relay_gpio;
bool relay_invert;
bool relay_state;
double button_last_change;
};