From ccb75398c251225375e130c2ca2fa9822dc1a5ca Mon Sep 17 00:00:00 2001 From: skullY Date: Thu, 15 Mar 2018 16:44:20 -0700 Subject: [PATCH] Add support for clueboard hotswap audio --- keyboards/clueboard/66_hotswap/gen1/config.h | 2 +- keyboards/clueboard/66_hotswap/rules.mk | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/keyboards/clueboard/66_hotswap/gen1/config.h b/keyboards/clueboard/66_hotswap/gen1/config.h index d8163f53..e862306c 100644 --- a/keyboards/clueboard/66_hotswap/gen1/config.h +++ b/keyboards/clueboard/66_hotswap/gen1/config.h @@ -26,7 +26,7 @@ /* Speaker configuration */ -//#define SPEAKER_PIN B7 // FIXME: find the correct name for this define +#define B7_AUDIO /* Backlight configuration */ diff --git a/keyboards/clueboard/66_hotswap/rules.mk b/keyboards/clueboard/66_hotswap/rules.mk index 1a22696e..98ed3e9e 100644 --- a/keyboards/clueboard/66_hotswap/rules.mk +++ b/keyboards/clueboard/66_hotswap/rules.mk @@ -6,6 +6,7 @@ ARCH = AVR8 F_USB = $(F_CPU) OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT OPT_DEFS += -DBOOTLOADER_SIZE=4096 +EXTRAFLAGS += -flto # Build Options # comment out to disable the options. @@ -14,9 +15,9 @@ BOOTMAGIC_ENABLE = no # Virtual DIP switch configuration(+1000) MOUSEKEY_ENABLE = no # Mouse keys(+4700) EXTRAKEY_ENABLE = yes # Audio control and System control(+450) CONSOLE_ENABLE = yes # Console for debug(+400) -COMMAND_ENABLE = yes # Commands for debug and configuration +COMMAND_ENABLE = no # Commands for debug and configuration NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work -AUDIO_ENABLE = no +AUDIO_ENABLE = yes RGBLIGHT_ENABLE = yes # Enable keyboard underlight functionality MIDI_ENABLE = no # MIDI controls UNICODE_ENABLE = no # Unicode