[Keyboard] Crkbd RGB Matrix config with WS2812 (#5627)
[jackhill/qmk/firmware.git] / keyboards / crkbd / rev1 / config.h
index 55bf593..6564c85 100644 (file)
@@ -53,7 +53,14 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 /* ws2812 RGB LED */
 #define RGB_DI_PIN D3
 
+#ifdef RGBLIGHT_ENABLE
 #define RGBLED_NUM 12    // Number of LEDs
+#endif
+
+#ifdef RGB_MATRIX_ENABLE
+#define RGBLED_NUM 54    // Number of LEDs
+#define DRIVER_LED_TOTAL RGBLED_NUM
+#endif
 
 /*
  * Feature disable options