doc fixes

This commit is contained in:
Dan Halbert 2021-04-29 23:51:39 -04:00
parent 48dd54cb85
commit b8b20faa20
2 changed files with 8 additions and 7 deletions

View File

@ -36,11 +36,10 @@
//| import usb_hid
//|
//| mouse = usb_hid.devices[0]
//|
//| mouse.send_report()"""
//|
//| def __init__(self, *, descriptor: ReadableBuffer, usage_page: int, usage: int, in_report_length: int, out_report_length: Optional[int], , report_id_index: Optional[int]) -> None:
//| def __init__(self, *, descriptor: ReadableBuffer, usage_page: int, usage: int, in_report_length: int, out_report_length: Optional[int], report_id_index: Optional[int]) -> None:
//| """Create a description of a USB HID device. To create an actual device,
//| pass a `Device` to `usb_hid.configure_usb()`.
//|
@ -55,6 +54,7 @@
//| :param int report_id_index: position of byte in descriptor that contains the Report ID.
//| A Report ID will be assigned when the device is created. If there is no
//| Report ID, use ``None``.
//| """
//| ...
//|
STATIC mp_obj_t usb_hid_device_make_new(const mp_obj_type_t *type, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) {

View File

@ -48,6 +48,7 @@
//| If `devices` is empty, HID is disabled. The order of the ``Devices``
//| may matter to the host. For instance, for MacOS, put the mouse device
//| before any Gamepad or Digitizer HID device or else it will not work.
//| """
//| ...
//|
STATIC mp_obj_t usb_hid_configure_usb(mp_obj_t devices) {