Page 1 of 1

USB HID keyboard and mouse helper

Posted: Sat Mar 23, 2019 4:28 am
by gdsports
The USB Sidekick (USk) provides USB HID keyboard and mouse services to another device that lacks USB hardware. The USk accepts AT commands and translates them into USB keyboard and mouse events. The USk firmware runs on an Adafruit Trinket M0.

https://github.com/gdsports/sidekick

It has been tested on an ESP8266 running MicroPython but it should work on anything with a UART such as an ESP32.

Bare mininum code for an ESP8266 running MicroPython.

Code: Select all

from machine import UART
# GPIO#2 UART TX
uart = UART(1, 115200)
uart.write('at+usbkeyboard=https://micropython.org\\n\r')