Skip to content

Instantly share code, notes, and snippets.

View BiatuAutMiahn's full-sized avatar

BiatuAutMiahn

  • InfinityResearchAndDevelopment
View GitHub Profile
@BiatuAutMiahn
BiatuAutMiahn / myusbgadget
Created September 16, 2017 01:25 — forked from geekman/myusbgadget
Pi Zero multiple USB gadgets minimal example
#!/bin/bash -e
modprobe libcomposite
cd /sys/kernel/config/usb_gadget/
mkdir g && cd g
echo 0x1d6b > idVendor # Linux Foundation
echo 0x0104 > idProduct # Multifunction Composite Gadget
echo 0x0100 > bcdDevice # v1.0.0