Releases: adafruit/Adafruit_CircuitPython_HID
Fix documentation build
Consumer control and gamepad documentation was missing from api.rst
.
To use in CircuitPython, download the .mpy file and copy it to the lib
folder on the CIRCUITPY
drive. Or, simply install the Adafruit CircuitPython bundle.
Read the docs for info on how to use it.
Handle 16-bit ConsumerControl codes
ConsumerControl was not passing 16-bit codes properly. Thanks @zeevro!
Check for Gamepad or ConsumerControl being used on CPy < 3.0
Merge pull request #21 from zzsnzmn/check_circuitpython_version Raise ImportError if using CircuitPython < 3.
HID Gamepad support
For use with gamepad support in CircuitPython 3.0.0-alpha.6.
Fix regression on Mouse.click() and other Mouse button functions.
Merge pull request #16 from dhalbert/fix_mouse_no_move Fix Mouse bug introduced in 3.0.0
Multimedia keys (ConsumerControl); Keyboard.send(); wait for host to be ready
-
Added
ConsumerControl
andConsumerControlCode
to send multimedia control requests, such as volume up/down, play/pause, etc. Many keyboards have these keys. Supported only in CircuitPython 3.0 and up. -
Added the convenience method
Keyboard.send(...)
, which combinesKeyboard.press(...)
andKeyboard.release_all()
. -
When
main.py
starts, the host may not yet have configured the HID devices. Wait for an extra second if necessary to ensure the host is ready (see issue #13).
Added an examples folder and two example .py files.
Merge pull request #9 from Sigafoos/examples Added examples for keyboard shortcuts and a mouse scrollwheel
Updated with lint and autobundling!
Thanks to @mrmcwethy for the great work!
Fix documentation; add Keycode.SPACE
Fixes issue #6. Some Keycodes were missing from the published documentation due to a sphinx configuration issue. Keycode.SPACE is added as an alias for Keycode.SPACEBAR.