Skip to content

Explicit devices

Choose a tag to compare

@tannewt tannewt released this 07 Jan 22:11
2d1dce6

The HID objects now take a list of HID devices available and match themselves to the correct device. Previously, USB HID devices were used implicitly. Now, BLE HID devices can be used in place of USB HID.

Existing code will need to import usb_hid and pass in usb_hid.devices into the constructor of the object. For example keyboard = Keyboard() becomes keyboard = Keyboard(usb_hid.devices).

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip install adafruit-circuitpython-hid.

Read the docs for info on how to use it.