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:
datacan be an integer, which is the number of bytes to receive, or a mutable buffer, which will be filled with received bytes.timeoutis the timeout in milliseconds to wait for the receive.
Return value: if
datais an integer then a new buffer of the bytes received, otherwise the number of bytes read intodatais returned.