summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJos Verlinde <josverl@microsoft.com>2021-09-21 18:37:01 +0200
committerDamien George <damien@micropython.org>2022-02-09 15:04:57 +1100
commitba4f6f5fdf949924b44bf54291f6a860d6e36bff (patch)
treef69c892f546e31f9e50f563c89c8dceda8fbaeb0
parent50b172023f27e571ffdc250a7e90916b46b8feca (diff)
docs/library/pyb.rst: Add pyb.hid_mouse and pyb.hid_keyboard constants.
-rw-r--r--docs/library/pyb.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/docs/library/pyb.rst b/docs/library/pyb.rst
index 880d68c53..c8ef2c531 100644
--- a/docs/library/pyb.rst
+++ b/docs/library/pyb.rst
@@ -298,6 +298,15 @@ Miscellaneous functions
The *high_speed* parameter, when set to ``True``, enables USB HS mode if
it is supported by the hardware.
+Constants
+---------
+
+.. data:: pyb.hid_mouse
+ pyb.hid_keyboard
+
+ A tuple of (subclass, protocol, max packet length, polling interval, report
+ descriptor) to set appropriate values for a USB mouse or keyboard.
+
Classes
-------