From 7331282c1a4304550806ba8f014476aa79d77515 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Mon, 11 Jul 2022 05:46:11 +0300 Subject: [PATCH] fix --- docs/xh_hk4401.md | 110 +++++++++++++++++++++++----------------------- 1 file changed, 55 insertions(+), 55 deletions(-) diff --git a/docs/xh_hk4401.md b/docs/xh_hk4401.md index fd443928..8c983969 100644 --- a/docs/xh_hk4401.md +++ b/docs/xh_hk4401.md @@ -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. -| Method | Device | -|----------|----------------| -| FT-232 | `/dev/ttyUSB0` | -| Inverter | `/dev/ttyAMA0` | + | Method | Device | + |----------|----------------| + | FT-232 | `/dev/ttyUSB0` | + | Inverter | `/dev/ttyAMA0` | - ```yaml - kvmd: - gpio: - drivers: - hk: - type: xh_hk4401 - device: /dev/ttyUSB0 - scheme: - ch0_led: - driver: hk - pin: 0 - mode: input - ch1_led: - driver: hk - pin: 1 - mode: input - ch2_led: - driver: hk - pin: 2 - mode: input - ch3_led: - driver: hk - pin: 3 - mode: input - ch0_button: - driver: hk - pin: 0 - mode: output - switch: false - ch1_button: - driver: hk - pin: 1 - mode: output - switch: false - ch2_button: - driver: hk - pin: 2 - mode: output - switch: false - ch3_button: - driver: hk - pin: 3 - mode: output - switch: false - view: - table: - - ["#Input 1", ch0_led, ch0_button] - - ["#Input 2", ch1_led, ch1_button] - - ["#Input 3", ch2_led, ch2_button] - - ["#Input 4", ch3_led, ch3_button] - ``` + ```yaml + kvmd: + gpio: + drivers: + hk: + type: xh_hk4401 + device: /dev/ttyUSB0 + scheme: + ch0_led: + driver: hk + pin: 0 + mode: input + ch1_led: + driver: hk + pin: 1 + mode: input + ch2_led: + driver: hk + pin: 2 + mode: input + ch3_led: + driver: hk + pin: 3 + mode: input + ch0_button: + driver: hk + pin: 0 + mode: output + switch: false + ch1_button: + driver: hk + pin: 1 + mode: output + switch: false + ch2_button: + driver: hk + pin: 2 + mode: output + switch: false + ch3_button: + driver: hk + pin: 3 + mode: output + switch: false + view: + table: + - ["#Input 1", ch0_led, ch0_button] + - ["#Input 2", ch1_led, ch1_button] + - ["#Input 3", ch2_led, ch2_button] + - ["#Input 4", ch3_led, ch3_button] + ``` 4. Return to read-only mode for the sd card via `ro`