公司或者主机设备没有usb接口,只能使用PS/2接口键盘。此程序完成USB HID keyboard协议向PS/2的scan code set 2转换。
- arduino uno R3
- USB Host Shield
- 默认PS/2接口的的四条数据线中,数据段和时钟段连接在Arduino的(4,2)。
- 使用IDE刷入usb2ps2.ino即可
The company or host device does not have a usb interface and can only use the PS/2 interface keyboard. This program completes the conversion of the USB HID keyboard protocol to the PS/2 scan code set 2.
- Arduino uno R3
- USB Host Shield
- Among the four data lines of the default PS/2 interface, the data segment and the clock segment are connected to the Arduino (4, 2).
- Use the IDE to brush usb2ps2.ino