summaryrefslogtreecommitdiffstats
path: root/keyboards/adafruit/macropad/config.h
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@drashna.net>2023-04-07 17:59:13 -0700
committerGitHub <noreply@github.com>2023-04-08 10:59:13 +1000
commit2c375e64785f3d69a14d7a3e02c041d774d1d75b (patch)
treebebc8ec37099bf4d14b3d0555a3ae848289d88ce /keyboards/adafruit/macropad/config.h
parenta5e68e5f748a98b57bd2865112f5e0caa46df255 (diff)
[Keyboard] Add audio support to Adafruit MacroPad RP2040 (#20353)
Diffstat (limited to 'keyboards/adafruit/macropad/config.h')
-rw-r--r--keyboards/adafruit/macropad/config.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/keyboards/adafruit/macropad/config.h b/keyboards/adafruit/macropad/config.h
index c493c487e3..af72251dac 100644
--- a/keyboards/adafruit/macropad/config.h
+++ b/keyboards/adafruit/macropad/config.h
@@ -42,9 +42,14 @@
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_LED GP13
#define RP2040_BOOTLOADER_DOUBLE_TAP_RESET_TIMEOUT 500U
-/* Audio (Unsupported for now)*/
-// #define AUDIO_PIN GP16
-// #define SPEAKER_SHUTDOWN GP14
+/* Audio */
+#define AUDIO_PIN GP16
+#define AUDIO_PWM_DRIVER PWMD0
+#define AUDIO_PWM_CHANNEL RP2040_PWM_CHANNEL_A
+#define AUDIO_INIT_DELAY
+#define AUDIO_CLICKY
+
+#define SPEAKER_SHUTDOWN GP14
#ifdef RGB_MATRIX_ENABLE