You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Angus Gratton 47ae739409 examples/usb: Add README that points out the alternative usb modules. 6 months ago
..
README.md examples/usb: Add README that points out the alternative usb modules. 6 months ago
usb_dfu_device.py examples/usb: Add a USBDevice example implementing the DFU protocol. 6 months ago
usb_simple_device.py examples/usb: Add a very simple USBDevice example with host. 6 months ago
usb_simple_host_pyusb.py examples/usb: Add a very simple USBDevice example with host. 6 months ago

README.md

USBDevice Examples

These are examples of how to use the low-level machine.USBDevice class to create custom USB device functionality.

Alternatively, there are usb driver modules in micropython-lib which provide a simpler interface and more built-in functionality.

In this directory:

  • usb_dfu_device.py implements the USB Device Firmware Update protocol.
  • usb_simple_device.py implements a custom USB protocol, with a matching host program to run on a PC.

See comments at the top of each Python file for more details.