Skip to content

Instantly share code, notes, and snippets.

@wojtekka
Last active September 19, 2022 19:10
Show Gist options
  • Save wojtekka/14742f035b7e0c9682a02df54789d30a to your computer and use it in GitHub Desktop.
Save wojtekka/14742f035b7e0c9682a02df54789d30a to your computer and use it in GitHub Desktop.
Raspberry Pi Zero PWM audio overlay
/boot/config.txt:
[all]
dtoverlay=pwm-2chan,pin=18,func=2,pin2=13,func2=4
/boot/cmdline.txt:
snd_bcm2835.enable_compat_alsa=1
/etc/rc.local:
amixer cset numid=3 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment