Skip to content
Machine-UART
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit

If someone starts from this directory then they won't know they exist,
otherwise.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
47ae739

Git stats

Files

Permalink
Failed to load latest commit information.

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.