Documentation Status Discord

The adafruit_usb_descriptor library provides Python classes that make it easier to generate a binary USB descriptor. It can be used in place of a series of C macros.


This library has no external dependencies. It only uses Python struct.

Usage Example

A current usage example that generates descriptors for use with [TinyUSB]( can be found here in CircuitPython.


Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.