USB - HID Keyboard
In this example, the RTL8722 board emulates a HID keyboard connected using USB.
Open the example, “Files” -> “Examples” -> “AmebaUSB” -> “USBHIDKeyboard”.
Upload the code and press the reset button once the upload is finished.
Connect the USB OTG port on the board to the host device. Refer to the example guide for USB CDC Serial for connection instructions.
The board is ready to send keyboard input to the host device. Select a text input field, such as in the Serial Monitor or a text document. Connect digital pin 8 to 3.3V to start sending keystrokes, connect to GND to stop.
You should see the text “Hello World!” typed out and deleted repeatedly.