Skip to content

Instantly share code, notes, and snippets.

View cbix's full-sized avatar
🌱
▝ ▝▝ ▝▝▝ ▝▝ ▝▝▝ ▝▝ ▝▝▝ ▝▝ ▝▝▝ ▝▝ ▝▝▝ ▝▝ ▝▝▝ ▝▝ ▝▝▝ 

Florian Hülsmann cbix

🌱
▝ ▝▝ ▝▝▝ ▝▝ ▝▝▝ ▝▝ ▝▝▝ ▝▝ ▝▝▝ ▝▝ ▝▝▝ ▝▝ ▝▝▝ ▝▝ ▝▝▝ 
View GitHub Profile
@cbix
cbix / midi2-gadget.sh
Last active February 18, 2024 13:54
Pi Zero 2 USB MIDI 2.0 Jukebox
#!/bin/bash
# Setup Pi Zero 2 as a MIDI 2.0 gadget and play random MIDI files from /root/midi
# Mostly copied from https://docs.kernel.org/sound/designs/midi-2.0.html#midi2-usb-gadget-function-driver
# Please read that section carefully for any setup hints!
# Needs Linux kernel > 6.6
# Enable libcomposite kernel module:
# echo libcomposite > /etc/modules-load.d/libcomposite.conf
# /root/midi2-gadget.sh
cd /sys/kernel/config