pyb.USB_HID
Classes
Create a new USB_HID object. |
Module Contents
- class pyb.USB_HID.USB_HID
Create a new USB_HID object.
- recv(data, *, timeout=5000) int
Receive data on the bus:
data
can be an integer, which is the number of bytes to receive, or a mutable buffer, which will be filled with received bytes.timeout
is the timeout in milliseconds to wait for the receive.
Return value: if
data
is an integer then a new buffer of the bytes received, otherwise the number of bytes read intodata
is returned.