don't invert atx leds by default

This commit is contained in:
Devaev Maxim 2019-11-20 05:08:49 +03:00
parent 9f4cc35a75
commit 01f92b6f19
5 changed files with 12 additions and 4 deletions

View File

@ -21,6 +21,8 @@ kvmd:
type: gpio
power_led_pin: 24
hdd_led_pin: 22
power_led_inverted: true
hdd_led_inverted: true
power_switch_pin: 23
reset_switch_pin: 27

View File

@ -21,6 +21,8 @@ kvmd:
type: gpio
power_led_pin: 24
hdd_led_pin: 22
power_led_inverted: true
hdd_led_inverted: true
power_switch_pin: 23
reset_switch_pin: 27

View File

@ -21,6 +21,8 @@ kvmd:
type: gpio
power_led_pin: 24
hdd_led_pin: 22
power_led_inverted: true
hdd_led_inverted: true
power_switch_pin: 23
reset_switch_pin: 27

View File

@ -21,6 +21,8 @@ kvmd:
type: gpio
power_led_pin: 24
hdd_led_pin: 22
power_led_inverted: true
hdd_led_inverted: true
power_switch_pin: 23
reset_switch_pin: 27

View File

@ -80,10 +80,10 @@ class Plugin(BaseAtx): # pylint: disable=too-many-instance-attributes
@classmethod
def get_plugin_options(cls) -> Dict:
return {
"power_led_pin": Option(-1, type=valid_gpio_pin),
"hdd_led_pin": Option(-1, type=valid_gpio_pin),
"power_led_inverted": Option(True, type=valid_bool),
"hdd_led_inverted": Option(True, type=valid_bool),
"power_led_pin": Option(-1, type=valid_gpio_pin),
"hdd_led_pin": Option(-1, type=valid_gpio_pin),
"power_led_inverted": Option(False, type=valid_bool),
"hdd_led_inverted": Option(False, type=valid_bool),
"power_switch_pin": Option(-1, type=valid_gpio_pin),
"reset_switch_pin": Option(-1, type=valid_gpio_pin),