using usb switches with a micro-usb button to toggle between input channels, this program will alternate both usb switch inputs. TESTED ON rPi 4B
- A
- B
- A
- B
computers A/B needs to toggle between keyboards.
for example -
keyboard A is switched to computer A. keyboard B is switched to computer B.
when the switch is pressed,
keyboard A is switched to computer B. keyboard B is switched to computer A.