mirror of https://github.com/pikvm/pikvm.git
fix
This commit is contained in:
parent
78a96db96d
commit
7331282c1a
|
|
@ -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`
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue