diff --git a/pyefis/config/buttons/dimmer-down-invisible.yaml b/pyefis/config/buttons/dimmer-down-invisible.yaml new file mode 100644 index 00000000..fad37eaa --- /dev/null +++ b/pyefis/config/buttons/dimmer-down-invisible.yaml @@ -0,0 +1,10 @@ +type: repeat +text: "" +dbkey: TSBTN{id}28 +transparent: true +repeat_interval: 50 +repeat_delay: 100 +conditions: + - when: "CLICKED eq true" + actions: + - change value: DIM,-1 diff --git a/pyefis/config/buttons/dimmer-up-invisible.yaml b/pyefis/config/buttons/dimmer-up-invisible.yaml new file mode 100644 index 00000000..d0123727 --- /dev/null +++ b/pyefis/config/buttons/dimmer-up-invisible.yaml @@ -0,0 +1,10 @@ +type: repeat +text: "" +dbkey: TSBTN{id}27 +transparent: true +repeat_interval: 50 +repeat_delay: 100 +conditions: + - when: "CLICKED eq true" + actions: + - change value: DIM,1 diff --git a/pyefis/config/includes/ahrs/virtual_vfr.yaml b/pyefis/config/includes/ahrs/virtual_vfr.yaml index 46c97392..6e4adfea 100644 --- a/pyefis/config/includes/ahrs/virtual_vfr.yaml +++ b/pyefis/config/includes/ahrs/virtual_vfr.yaml @@ -84,6 +84,13 @@ instruments: columns: 15 options: font_percent: 0.25 + - type: include,includes/bars/vertical/dimmer_control.yaml + disabled: DIMMER + row: 90 + column: 112 + span: + rows: 20 + columns: 6 - type: heading_display disabled: HEADING row: 0 diff --git a/pyefis/config/includes/bars/vertical/dimmer_control.yaml b/pyefis/config/includes/bars/vertical/dimmer_control.yaml new file mode 100644 index 00000000..ba038a5f --- /dev/null +++ b/pyefis/config/includes/bars/vertical/dimmer_control.yaml @@ -0,0 +1,31 @@ +instruments: + - type: vertical_bar_gauge + row: 0 + column: 0 + span: + rows: 20 + columns: 6 + options: + name: Dimmer + decimal_places: 0 + show_units: false + show_value: false + dbkey: DIM + bar_width_percent: 0.5 + - type: button + row: 0 + column: 0 + span: + rows: 10 + columns: 6 + options: + config: buttons/dimmer-up-invisible.yaml + - type: button + row: 10 + column: 0 + span: + rows: 10 + columns: 6 + options: + config: buttons/dimmer-down-invisible.yaml + diff --git a/pyefis/config/preferences.yaml b/pyefis/config/preferences.yaml index 144191f5..a9ea73fa 100644 --- a/pyefis/config/preferences.yaml +++ b/pyefis/config/preferences.yaml @@ -92,7 +92,7 @@ enabled: CYLINDER_2: true CYLINDER_3: true CYLINDER_4: true - + DIMMER: false # Here you can define what include files are used to render some # portion of the screen so you can customize as needed easily