Browse Source

[Keyboard] Reduce compile size for dz60rgb v2.1 (#13680)

Drashna Jaelre 3 years ago
parent
commit
7907a72584
2 changed files with 4 additions and 4 deletions
  1. 3 0
      keyboards/dztech/dz60rgb/v2_1/rules.mk
  2. 1 4
      keyboards/ungodly/launch_pad/config.h

+ 3 - 0
keyboards/dztech/dz60rgb/v2_1/rules.mk

@@ -24,3 +24,6 @@ RGB_MATRIX_ENABLE = yes        # Use RGB matrix
 RGB_MATRIX_DRIVER = IS31FL3733
 RGB_MATRIX_DRIVER = IS31FL3733
 NO_USB_STARTUP_CHECK = no      # Disable initialization only when usb is plugged in
 NO_USB_STARTUP_CHECK = no      # Disable initialization only when usb is plugged in
 LTO_ENABLE = yes
 LTO_ENABLE = yes
+
+SPACE_CADET_ENABLE = no
+GRAVE_ESC_ENABLE = no

+ 1 - 4
keyboards/ungodly/launch_pad/config.h

@@ -46,6 +46,7 @@
 /* RGB Matrix configuration */
 /* RGB Matrix configuration */
 #ifdef RGB_MATRIX_ENABLE
 #ifdef RGB_MATRIX_ENABLE
 #    define RGB_MATRIX_KEYPRESSES
 #    define RGB_MATRIX_KEYPRESSES
+#    define DRIVER_LED_TOTAL 22
 #endif
 #endif
 
 
 #define RGB_DI_PIN F7
 #define RGB_DI_PIN F7
@@ -58,10 +59,6 @@
 #    define RGBLIGHT_SLEEP         /* If defined, the RGB lighting will be switched off when the host goes to sleep */
 #    define RGBLIGHT_SLEEP         /* If defined, the RGB lighting will be switched off when the host goes to sleep */
 /*== all animations enable ==*/
 /*== all animations enable ==*/
 #    define RGBLIGHT_ANIMATIONS
 #    define RGBLIGHT_ANIMATIONS
-// RGB Matrix
-#    ifdef RGB_MATRIX_ENABLE
-#        define DRIVER_LED_TOTAL RGBLED_NUM
-#    endif
 #endif
 #endif
 
 
 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
 /* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */