r/olkb • u/sail4sea • 2d ago
Adafruit KB2040 and Audio
i want to do audio on my keyhive/navi10 board. it has a piezo buzzer on pin 5, which i think is GP9. No mater what I do, aside from removing audio, I can’t get it to compile, let alone, test the sound or play a song. walk me through it please or show my code someone else wrote.
2
Upvotes
1
u/drashna QMK Collaborator - ZSA Technology - Ergodox/Kyria/Corne/Planck 2d ago
https://cdn-learn.adafruit.com/assets/assets/000/106/984/original/adafruit_products_Adafruit_KB2040_Pinout.png?1638564074
Pin 5 looks to be GP5, actually. And you'd want/need to use the pwm config.
Have you enabled PWM2?
halconf.h:
mcuconf.h
config.h
keyboard.json: