diff options
author | Devaev Maxim <[email protected]> | 2019-04-16 01:16:37 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-04-16 01:16:42 +0300 |
commit | 33bf0e03d7bf6a81fc42ebf3416232ab8622a705 (patch) | |
tree | 6c5b1079eeb9e7d26756a5342ad74731881e528e /kvmd/apps/__init__.py | |
parent | 9f78c7e63782da3391d0196126a4e8a95c1442e6 (diff) |
supported not inverted leds
Diffstat (limited to 'kvmd/apps/__init__.py')
-rw-r--r-- | kvmd/apps/__init__.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py index eea8ea71..e95d19b9 100644 --- a/kvmd/apps/__init__.py +++ b/kvmd/apps/__init__.py @@ -183,11 +183,13 @@ def _get_config_scheme() -> Dict: "atx": { "enabled": Option(True, type=valid_bool), - "power_led_pin": Option(-1, type=valid_gpio_pin, only_if="enabled"), - "hdd_led_pin": Option(-1, type=valid_gpio_pin, only_if="enabled"), + "power_led_pin": Option(-1, type=valid_gpio_pin, only_if="enabled"), + "hdd_led_pin": Option(-1, type=valid_gpio_pin, only_if="enabled"), + "power_led_inverted": Option(True, type=valid_bool), + "hdd_led_inverted": Option(True, type=valid_bool), + "power_switch_pin": Option(-1, type=valid_gpio_pin, only_if="enabled"), "reset_switch_pin": Option(-1, type=valid_gpio_pin, only_if="enabled"), - "click_delay": Option(0.1, type=valid_float_f01), "long_click_delay": Option(5.5, type=valid_float_f01), |