This commit is contained in:
Maxim Devaev 2022-07-11 05:46:11 +03:00
parent 78a96db96d
commit 7331282c1a
1 changed files with 55 additions and 55 deletions

View File

@ -225,62 +225,62 @@ The UI can be updated to add buttons to switch between KVM inputs and indicators
3. Edit the `/etc/kvmd/override.yaml` file and include the following. 3. Edit the `/etc/kvmd/override.yaml` file and include the following.
| Method | Device | | Method | Device |
|----------|----------------| |----------|----------------|
| FT-232 | `/dev/ttyUSB0` | | FT-232 | `/dev/ttyUSB0` |
| Inverter | `/dev/ttyAMA0` | | Inverter | `/dev/ttyAMA0` |
```yaml ```yaml
kvmd: kvmd:
gpio: gpio:
drivers: drivers:
hk: hk:
type: xh_hk4401 type: xh_hk4401
device: /dev/ttyUSB0 device: /dev/ttyUSB0
scheme: scheme:
ch0_led: ch0_led:
driver: hk driver: hk
pin: 0 pin: 0
mode: input mode: input
ch1_led: ch1_led:
driver: hk driver: hk
pin: 1 pin: 1
mode: input mode: input
ch2_led: ch2_led:
driver: hk driver: hk
pin: 2 pin: 2
mode: input mode: input
ch3_led: ch3_led:
driver: hk driver: hk
pin: 3 pin: 3
mode: input mode: input
ch0_button: ch0_button:
driver: hk driver: hk
pin: 0 pin: 0
mode: output mode: output
switch: false switch: false
ch1_button: ch1_button:
driver: hk driver: hk
pin: 1 pin: 1
mode: output mode: output
switch: false switch: false
ch2_button: ch2_button:
driver: hk driver: hk
pin: 2 pin: 2
mode: output mode: output
switch: false switch: false
ch3_button: ch3_button:
driver: hk driver: hk
pin: 3 pin: 3
mode: output mode: output
switch: false switch: false
view: view:
table: table:
- ["#Input 1", ch0_led, ch0_button] - ["#Input 1", ch0_led, ch0_button]
- ["#Input 2", ch1_led, ch1_button] - ["#Input 2", ch1_led, ch1_button]
- ["#Input 3", ch2_led, ch2_button] - ["#Input 3", ch2_led, ch2_button]
- ["#Input 4", ch3_led, ch3_button] - ["#Input 4", ch3_led, ch3_button]
``` ```
4. Return to read-only mode for the sd card via `ro` 4. Return to read-only mode for the sd card via `ro`