Browse Source

Move `RGBLED_NUM` to data driven (#21278)

Ryan 3 years ago
parent
commit
b1783db4ea
100 changed files with 103 additions and 61 deletions
  1. 0 1
      keyboards/0_sixty/underglow/config.h
  2. 1 0
      keyboards/0_sixty/underglow/info.json
  3. 0 1
      keyboards/0xcb/1337/config.h
  4. 1 0
      keyboards/0xcb/1337/info.json
  5. 0 2
      keyboards/0xcb/tutelpad/config.h
  6. 1 0
      keyboards/0xcb/tutelpad/info.json
  7. 0 2
      keyboards/10bleoledhub/config.h
  8. 3 0
      keyboards/10bleoledhub/info.json
  9. 0 2
      keyboards/1k/config.h
  10. 3 0
      keyboards/1k/info.json
  11. 0 1
      keyboards/1upkeyboards/1up60hse/config.h
  12. 1 0
      keyboards/1upkeyboards/1up60hse/info.json
  13. 0 1
      keyboards/1upkeyboards/1up60hte/config.h
  14. 3 0
      keyboards/1upkeyboards/1up60hte/info.json
  15. 0 1
      keyboards/1upkeyboards/1up60rgb/config.h
  16. 3 0
      keyboards/1upkeyboards/1up60rgb/info.json
  17. 0 1
      keyboards/1upkeyboards/pi60_hse/config.h
  18. 1 2
      keyboards/1upkeyboards/super16/config.h
  19. 1 0
      keyboards/1upkeyboards/super16/info.json
  20. 0 1
      keyboards/1upkeyboards/sweet16/v1/config.h
  21. 3 0
      keyboards/1upkeyboards/sweet16/v1/info.json
  22. 0 1
      keyboards/1upkeyboards/sweet16v2/kb2040/config.h
  23. 0 1
      keyboards/25keys/aleth42/rev0/config.h
  24. 1 0
      keyboards/25keys/aleth42/rev0/info.json
  25. 0 1
      keyboards/25keys/aleth42/rev1/config.h
  26. 1 0
      keyboards/25keys/aleth42/rev1/info.json
  27. 0 1
      keyboards/25keys/cassette42/config.h
  28. 1 0
      keyboards/25keys/cassette42/info.json
  29. 0 1
      keyboards/2key2crawl/config.h
  30. 3 0
      keyboards/2key2crawl/info.json
  31. 0 1
      keyboards/40percentclub/luddite/config.h
  32. 3 0
      keyboards/40percentclub/luddite/info.json
  33. 0 1
      keyboards/40percentclub/nano/config.h
  34. 3 0
      keyboards/40percentclub/nano/info.json
  35. 0 1
      keyboards/40percentclub/nori/config.h
  36. 3 0
      keyboards/40percentclub/nori/info.json
  37. 0 1
      keyboards/40percentclub/tomato/config.h
  38. 3 0
      keyboards/40percentclub/tomato/info.json
  39. 0 2
      keyboards/4pplet/aekiso60/rev_a/config.h
  40. 3 0
      keyboards/4pplet/aekiso60/rev_a/info.json
  41. 0 1
      keyboards/4pplet/aekiso60/rev_b/config.h
  42. 3 0
      keyboards/4pplet/aekiso60/rev_b/info.json
  43. 0 1
      keyboards/4pplet/eagle_viper_rep/rev_a/config.h
  44. 3 0
      keyboards/4pplet/eagle_viper_rep/rev_a/info.json
  45. 0 1
      keyboards/4pplet/eagle_viper_rep/rev_b/config.h
  46. 3 0
      keyboards/4pplet/eagle_viper_rep/rev_b/info.json
  47. 0 2
      keyboards/4pplet/waffling60/rev_b/config.h
  48. 3 0
      keyboards/4pplet/waffling60/rev_b/info.json
  49. 0 2
      keyboards/4pplet/waffling60/rev_c/config.h
  50. 3 0
      keyboards/4pplet/waffling60/rev_c/info.json
  51. 0 1
      keyboards/4pplet/waffling60/rev_d/config.h
  52. 3 0
      keyboards/4pplet/waffling60/rev_d/info.json
  53. 0 2
      keyboards/4pplet/waffling80/rev_a/config.h
  54. 3 0
      keyboards/4pplet/waffling80/rev_a/info.json
  55. 0 1
      keyboards/4pplet/waffling80/rev_b/config.h
  56. 3 0
      keyboards/4pplet/waffling80/rev_b/info.json
  57. 0 1
      keyboards/8pack/config.h
  58. 3 0
      keyboards/8pack/info.json
  59. 0 2
      keyboards/9key/config.h
  60. 3 0
      keyboards/9key/info.json
  61. 0 1
      keyboards/abacus/config.h
  62. 1 0
      keyboards/abacus/info.json
  63. 0 1
      keyboards/abatskeyboardclub/nayeon/config.h
  64. 0 1
      keyboards/abstract/ellipse/rev1/config.h
  65. 1 0
      keyboards/abstract/ellipse/rev1/info.json
  66. 0 1
      keyboards/acekeyboard/titan60/config.h
  67. 1 0
      keyboards/acekeyboard/titan60/info.json
  68. 0 1
      keyboards/acheron/athena/alpha/config.h
  69. 3 0
      keyboards/acheron/athena/alpha/info.json
  70. 0 1
      keyboards/acheron/athena/beta/config.h
  71. 3 0
      keyboards/acheron/athena/beta/info.json
  72. 0 1
      keyboards/acheron/elongate/beta/config.h
  73. 1 0
      keyboards/acheron/elongate/beta/info.json
  74. 0 1
      keyboards/acheron/elongate/delta/config.h
  75. 1 0
      keyboards/acheron/elongate/delta/info.json
  76. 0 1
      keyboards/acheron/shark/beta/config.h
  77. 3 0
      keyboards/acheron/shark/beta/info.json
  78. 0 1
      keyboards/ada/ada1800mini/config.h
  79. 1 0
      keyboards/ada/ada1800mini/info.json
  80. 0 1
      keyboards/ada/infinity81/config.h
  81. 1 0
      keyboards/ada/infinity81/info.json
  82. 0 1
      keyboards/adafruit/macropad/config.h
  83. 0 1
      keyboards/adpenrose/kintsugi/config.h
  84. 1 0
      keyboards/adpenrose/kintsugi/info.json
  85. 0 1
      keyboards/adpenrose/obi/config.h
  86. 1 0
      keyboards/adpenrose/obi/info.json
  87. 0 1
      keyboards/aeboards/ext65/rev2/config.h
  88. 3 0
      keyboards/aeboards/ext65/rev2/info.json
  89. 0 1
      keyboards/ai03/polaris/config.h
  90. 1 0
      keyboards/ai03/polaris/info.json
  91. 0 1
      keyboards/ai03/voyager60_alps/config.h
  92. 1 0
      keyboards/ai03/voyager60_alps/info.json
  93. 0 1
      keyboards/aleblazer/zodiark/config.h
  94. 1 0
      keyboards/aleblazer/zodiark/info.json
  95. 0 1
      keyboards/alf/dc60/config.h
  96. 3 0
      keyboards/alf/dc60/info.json
  97. 0 1
      keyboards/alf/x11/config.h
  98. 1 0
      keyboards/alf/x11/info.json
  99. 0 1
      keyboards/alf/x2/config.h
  100. 3 0
      keyboards/alf/x2/info.json

+ 0 - 1
keyboards/0_sixty/underglow/config.h

@@ -18,7 +18,6 @@
 
 
 /* underglow */
-#define RGBLED_NUM 24
 #define RGBLIGHT_EFFECT_BREATHING
 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL

+ 1 - 0
keyboards/0_sixty/underglow/info.json

@@ -10,6 +10,7 @@
         "pin": "B6"
     },
     "rgblight": {
+        "led_count": 24,
         "max_brightness": 185
     }
 }

+ 0 - 1
keyboards/0xcb/1337/config.h

@@ -20,7 +20,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #define TAP_CODE_DELAY 10
 
-  #define RGBLED_NUM 4
   #define RGBLIGHT_HUE_STEP 8
   #define RGBLIGHT_SAT_STEP 8
   #define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/0xcb/1337/info.json

@@ -22,6 +22,7 @@
     "led": "B0"
   },
   "rgblight": {
+    "led_count": 4,
     "sleep": true
   },
   "ws2812": {

+ 0 - 2
keyboards/0xcb/tutelpad/config.h

@@ -16,8 +16,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define RGBLED_NUM 4                    // Number of LEDs connected
-
 #define RGBLIGHT_HUE_STEP 10            // The number of steps to cycle through the hue by
 #define RGBLIGHT_SAT_STEP 17            // The number of steps to increment the saturation by
 #define RGBLIGHT_VAL_STEP 17            // The number of steps to increment the brightness by

+ 1 - 0
keyboards/0xcb/tutelpad/info.json

@@ -12,6 +12,7 @@
         "matrix": [1, 0]
     },
     "rgblight": {
+        "led_count": 4,
         "sleep": true
     },
     "ws2812": {

+ 0 - 2
keyboards/10bleoledhub/config.h

@@ -18,8 +18,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.*/
 
 #define SSD1306OLED
 
-#define RGBLED_NUM 4
-
 #define RGBLIGHT_EFFECT_BREATHING
 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL

+ 3 - 0
keyboards/10bleoledhub/info.json

@@ -8,6 +8,9 @@
         "pid": "0x7C99",
         "device_version": "0.0.1"
     },
+    "rgblight": {
+        "led_count": 4
+    },
     "ws2812": {
         "pin": "B7"
     },

+ 0 - 2
keyboards/1k/config.h

@@ -15,8 +15,6 @@
  */
 #pragma once
 
-#define RGBLED_NUM 1
-
 // Save as much space as we can...
 #define LAYER_STATE_8BIT
 #define NO_ACTION_LAYER

+ 3 - 0
keyboards/1k/info.json

@@ -8,6 +8,9 @@
     "pid": "0x0001",
     "device_version": "0.0.1"
   },
+  "rgblight": {
+    "led_count": 1
+  },
   "ws2812": {
     "pin": "B2"
   },

+ 0 - 1
keyboards/1upkeyboards/1up60hse/config.h

@@ -27,7 +27,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define RGBLIGHT_EFFECT_RGB_TEST
 #define RGBLIGHT_EFFECT_ALTERNATING
 #define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 14
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8
 #define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/1upkeyboards/1up60hse/info.json

@@ -19,6 +19,7 @@
         "breathing": true
     },
     "rgblight": {
+        "led_count": 14,
         "sleep": true
     },
     "ws2812": {

+ 0 - 1
keyboards/1upkeyboards/1up60hte/config.h

@@ -34,7 +34,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define RGBLIGHT_EFFECT_RGB_TEST
 #define RGBLIGHT_EFFECT_ALTERNATING
 #define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 14
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8
 #define RGBLIGHT_VAL_STEP 8

+ 3 - 0
keyboards/1upkeyboards/1up60hte/info.json

@@ -20,6 +20,9 @@
         "caps_lock": "B6",
         "on_state": 0
     },
+    "rgblight": {
+        "led_count": 14
+    },
     "ws2812": {
         "pin": "F0"
     },

+ 0 - 1
keyboards/1upkeyboards/1up60rgb/config.h

@@ -16,7 +16,6 @@
 #define RGBLIGHT_EFFECT_RGB_TEST
 #define RGBLIGHT_EFFECT_ALTERNATING
 #define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 16
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8
 #define RGBLIGHT_VAL_STEP 8

+ 3 - 0
keyboards/1upkeyboards/1up60rgb/info.json

@@ -17,6 +17,9 @@
     "pin": "B6",
     "levels": 5
   },
+  "rgblight": {
+    "led_count": 16
+  },
   "ws2812": {
     "pin": "E2"
   },

+ 0 - 1
keyboards/1upkeyboards/pi60_hse/config.h

@@ -6,7 +6,6 @@
 
 #define DYNAMIC_KEYMAP_LAYER_COUNT 10
 #define RGB_MATRIX_LED_COUNT 16
-#define RGBLED_NUM 16
 #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
 #define RGB_MATRIX_KEYPRESSES
 #define RGB_DISABLE_WHEN_USB_SUSPENDED

+ 1 - 2
keyboards/1upkeyboards/super16/config.h

@@ -17,8 +17,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#    define RGBLED_NUM 16  // Add 12 if attaching the RGB LED ring
-#    define RGB_MATRIX_LED_COUNT RGBLED_NUM
+#    define RGB_MATRIX_LED_COUNT 16
 #    ifdef RGBLIGHT_ENABLE
 #        define RGBLIGHT_HUE_STEP 8
 #        define RGBLIGHT_SAT_STEP 8

+ 1 - 0
keyboards/1upkeyboards/super16/info.json

@@ -12,6 +12,7 @@
     "pin": "D3"
   },
   "rgblight": {
+    "led_count": 16,
     "sleep": true
   },
   "rgb_matrix": {

+ 0 - 1
keyboards/1upkeyboards/sweet16/v1/config.h

@@ -17,7 +17,6 @@
 #define RGBLIGHT_EFFECT_RGB_TEST
 #define RGBLIGHT_EFFECT_ALTERNATING
 #define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 1
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8
 #define RGBLIGHT_VAL_STEP 8

+ 3 - 0
keyboards/1upkeyboards/sweet16/v1/info.json

@@ -3,6 +3,9 @@
         "pid": "0x0161",
         "device_version": "0.0.1"
     },
+    "rgblight": {
+        "led_count": 1
+    },
     "ws2812": {
         "pin": "B1"
     },

+ 0 - 1
keyboards/1upkeyboards/sweet16v2/kb2040/config.h

@@ -19,7 +19,6 @@
 
 #define DYNAMIC_KEYMAP_LAYER_COUNT 10
 #define RGB_MATRIX_LED_COUNT 20
-#define RGBLED_NUM 20
 #define RGB_MATRIX_KEYPRESSES
 #define RGB_MATRIX_FRAMEBUFFER_EFFECTS
 #define RGB_DISABLE_WHEN_USB_SUSPENDED

+ 0 - 1
keyboards/25keys/aleth42/rev0/config.h

@@ -17,7 +17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-   #define RGBLED_NUM 6
    #define RGBLIGHT_HUE_STEP 8
    #define RGBLIGHT_SAT_STEP 8
    #define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/25keys/aleth42/rev0/info.json

@@ -14,6 +14,7 @@
         ]
     },
     "rgblight": {
+        "led_count": 6,
         "sleep": true
     },
     "ws2812": {

+ 0 - 1
keyboards/25keys/aleth42/rev1/config.h

@@ -17,7 +17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-   #define RGBLED_NUM 8
    #define RGBLIGHT_HUE_STEP 8
    #define RGBLIGHT_SAT_STEP 8
    #define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/25keys/aleth42/rev1/info.json

@@ -14,6 +14,7 @@
         ]
     },
     "rgblight": {
+        "led_count": 8,
         "sleep": true
     },
     "ws2812": {

+ 0 - 1
keyboards/25keys/cassette42/config.h

@@ -17,7 +17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#    define RGBLED_NUM 5
 #    define RGBLIGHT_HUE_STEP 8
 #    define RGBLIGHT_SAT_STEP 8
 #    define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/25keys/cassette42/info.json

@@ -15,6 +15,7 @@
         ]
     },
     "rgblight": {
+        "led_count": 5,
         "sleep": true
     },
     "ws2812": {

+ 0 - 1
keyboards/2key2crawl/config.h

@@ -18,5 +18,4 @@
 #    define RGBLIGHT_EFFECT_RGB_TEST
 #    define RGBLIGHT_EFFECT_ALTERNATING
 #    define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 3
 #endif

+ 3 - 0
keyboards/2key2crawl/info.json

@@ -18,6 +18,9 @@
             {"pin_a": "D0", "pin_b": "D1", "resolution": 1}
         ]
     },
+    "rgblight": {
+        "led_count": 3
+    },
     "ws2812": {
         "pin": "C6"
     },

+ 0 - 1
keyboards/40percentclub/luddite/config.h

@@ -17,7 +17,6 @@
 #    define RGBLIGHT_EFFECT_RGB_TEST
 #    define RGBLIGHT_EFFECT_ALTERNATING
 #    define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 8    // Number of LEDs
 // #define RGBLIGHT_HUE_STEP 10
 // #define RGBLIGHT_SAT_STEP 17
 // #define RGBLIGHT_VAL_STEP 17

+ 3 - 0
keyboards/40percentclub/luddite/info.json

@@ -17,6 +17,9 @@
     "pin": "B5",
     "levels": 4
   },
+  "rgblight": {
+    "led_count": 8
+  },
   "ws2812": {
     "pin": "B4"
   },

+ 0 - 1
keyboards/40percentclub/nano/config.h

@@ -28,4 +28,3 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #    define RGBLIGHT_EFFECT_RGB_TEST
 #    define RGBLIGHT_EFFECT_ALTERNATING
 #    define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 6    // Number of LEDs

+ 3 - 0
keyboards/40percentclub/nano/info.json

@@ -8,6 +8,9 @@
     "pid": "0x0007",
     "device_version": "0.0.1"
   },
+  "rgblight": {
+    "led_count": 6
+  },
   "ws2812": {
     "pin": "D3"
   },

+ 0 - 1
keyboards/40percentclub/nori/config.h

@@ -27,7 +27,6 @@
 #define RGBLIGHT_EFFECT_RGB_TEST
 #define RGBLIGHT_EFFECT_ALTERNATING
 #define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 10
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8
 #define RGBLIGHT_VAL_STEP 8

+ 3 - 0
keyboards/40percentclub/nori/info.json

@@ -16,6 +16,9 @@
     "backlight": {
       "pin": "B5"
     },
+    "rgblight": {
+      "led_count": 10
+    },
     "ws2812": {
       "pin": "B4"
     },

+ 0 - 1
keyboards/40percentclub/tomato/config.h

@@ -17,7 +17,6 @@
 #define RGBLIGHT_EFFECT_RGB_TEST
 #define RGBLIGHT_EFFECT_ALTERNATING
 #define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 30
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8
 #define RGBLIGHT_VAL_STEP 8

+ 3 - 0
keyboards/40percentclub/tomato/info.json

@@ -8,6 +8,9 @@
     "pid": "0x546F",
     "device_version": "0.0.1"
   },
+  "rgblight": {
+    "led_count": 30
+  },
   "ws2812": {
     "pin": "B5"
   },

+ 0 - 2
keyboards/4pplet/aekiso60/rev_a/config.h

@@ -1,7 +1,5 @@
 #pragma once
 
-#define RGBLED_NUM 12
-
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8
 #define RGBLIGHT_VAL_STEP 8

+ 3 - 0
keyboards/4pplet/aekiso60/rev_a/info.json

@@ -4,6 +4,9 @@
         "pid": "0x0001",
         "device_version": "0.0.1"
     },
+    "rgblight": {
+        "led_count": 12
+    },
     "ws2812": {
         "pin": "D3"
     },

+ 0 - 1
keyboards/4pplet/aekiso60/rev_b/config.h

@@ -16,7 +16,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 #pragma once
 
-#define RGBLED_NUM 12
 #define WS2812_EXTERNAL_PULLUP
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8

+ 3 - 0
keyboards/4pplet/aekiso60/rev_b/info.json

@@ -4,6 +4,9 @@
         "pid": "0x0011",
         "device_version": "0.0.2"
     },
+    "rgblight": {
+        "led_count": 12
+    },
     "ws2812": {
         "pin": "A8"
     },

+ 0 - 1
keyboards/4pplet/eagle_viper_rep/rev_a/config.h

@@ -25,7 +25,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define WS2812_SPI_MOSI_PAL_MODE 0
 #define WS2812_SPI_SCK_PIN A5
 #define WS2812_SPI_SCK_PAL_MODE 0
-#define RGBLED_NUM  16
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8
 #define RGBLIGHT_VAL_STEP 8

+ 3 - 0
keyboards/4pplet/eagle_viper_rep/rev_a/info.json

@@ -18,6 +18,9 @@
         "levels": 10,
         "breathing": true
     },
+    "rgblight": {
+        "led_count": 16
+    },
     "ws2812": {
         "pin": "A7",
         "driver": "spi"

+ 0 - 1
keyboards/4pplet/eagle_viper_rep/rev_b/config.h

@@ -21,7 +21,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define BACKLIGHT_PAL_MODE      1
 
 /* Underglow */
-#define RGBLED_NUM 16
 #define WS2812_EXTERNAL_PULLUP
 
 #define RGBLIGHT_HUE_STEP 8

+ 3 - 0
keyboards/4pplet/eagle_viper_rep/rev_b/info.json

@@ -23,6 +23,9 @@
         "num_lock": "B12",
         "scroll_lock": "B13"
     },
+    "rgblight": {
+        "led_count": 16
+    },
     "ws2812": {
         "pin": "A8"
     },

+ 0 - 2
keyboards/4pplet/waffling60/rev_b/config.h

@@ -16,8 +16,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 #pragma once
 
-#define RGBLED_NUM 1
-
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8
 #define RGBLIGHT_VAL_STEP 8

+ 3 - 0
keyboards/4pplet/waffling60/rev_b/info.json

@@ -8,6 +8,9 @@
         "pid": "0x0005",
         "device_version": "0.0.2"
     },
+    "rgblight": {
+        "led_count": 1
+    },
     "ws2812": {
         "pin": "D3"
     },

+ 0 - 2
keyboards/4pplet/waffling60/rev_c/config.h

@@ -16,8 +16,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 #pragma once
 
-#define RGBLED_NUM 1
-
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8
 #define RGBLIGHT_VAL_STEP 8

+ 3 - 0
keyboards/4pplet/waffling60/rev_c/info.json

@@ -12,6 +12,9 @@
         "cols": ["C4", "C5", "D2", "C6", "C7", "B7", "B6", "B5", "B4", "B3", "B2", "B1", "D1", "D4"],
         "rows": ["C2", "D0", "B0", "D6", "D5"]
     },
+    "rgblight": {
+        "led_count": 1
+    },
     "ws2812": {
         "pin": "D3"
     },

+ 0 - 1
keyboards/4pplet/waffling60/rev_d/config.h

@@ -16,7 +16,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 #pragma once
 
-#define RGBLED_NUM 1
 #define WS2812_EXTERNAL_PULLUP
 
 #define RGBLIGHT_HUE_STEP 8

+ 3 - 0
keyboards/4pplet/waffling60/rev_d/info.json

@@ -8,6 +8,9 @@
         "pid": "0x000E",
         "device_version": "0.0.4"
     },
+    "rgblight": {
+        "led_count": 1
+    },
     "ws2812": {
         "pin": "A8"
     },

+ 0 - 2
keyboards/4pplet/waffling80/rev_a/config.h

@@ -16,8 +16,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 #pragma once
 
-#define RGBLED_NUM 2
-
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8
 #define RGBLIGHT_VAL_STEP 8

+ 3 - 0
keyboards/4pplet/waffling80/rev_a/info.json

@@ -4,6 +4,9 @@
         "pid": "0x0006",
         "device_version": "0.0.1"
     },
+    "rgblight": {
+        "led_count": 2
+    },
     "ws2812": {
         "pin": "D7"
     },

+ 0 - 1
keyboards/4pplet/waffling80/rev_b/config.h

@@ -16,7 +16,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 #pragma once
 
-#define RGBLED_NUM 2
 #define WS2812_EXTERNAL_PULLUP
 
 #define RGBLIGHT_HUE_STEP 8

+ 3 - 0
keyboards/4pplet/waffling80/rev_b/info.json

@@ -4,6 +4,9 @@
         "pid": "0x000F",
         "device_version": "0.0.2"
     },
+    "rgblight": {
+        "led_count": 2
+    },
     "ws2812": {
         "pin": "A8"
     },

+ 0 - 1
keyboards/8pack/config.h

@@ -7,7 +7,6 @@
 #define LOCKING_RESYNC_ENABLE
 
 // ws2812 options
-#define RGBLED_NUM 8 // number of LEDs
 #define RGBLIGHT_EFFECT_BREATHING
 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL

+ 3 - 0
keyboards/8pack/info.json

@@ -11,6 +11,9 @@
     "pins": ["D1", "D0", "D4", "C6", "D7", "E6", "B4", "B5"],
     "levels": 8
   },
+  "rgblight": {
+    "led_count": 8
+  },
   "ws2812": {
     "pin": "D2"
   },

+ 0 - 2
keyboards/9key/config.h

@@ -17,6 +17,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#define RGBLED_NUM 1    // Number of LEDs
-
 #define TAPPING_TERM 200

+ 3 - 0
keyboards/9key/info.json

@@ -8,6 +8,9 @@
     "pid": "0x0007",
     "device_version": "0.0.1"
   },
+  "rgblight": {
+    "led_count": 1
+  },
   "ws2812": {
     "pin": "F7"
   },

+ 0 - 1
keyboards/abacus/config.h

@@ -19,7 +19,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #define DIP_SWITCH_PINS { D0 }
 
-#    define RGBLED_NUM 17
 #    define RGBLIGHT_HUE_STEP 8
 #    define RGBLIGHT_SAT_STEP 8
 #    define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/abacus/info.json

@@ -19,6 +19,7 @@
         ]
     },
     "rgblight": {
+        "led_count": 17,
         "sleep": true
     },
     "ws2812": {

+ 0 - 1
keyboards/abatskeyboardclub/nayeon/config.h

@@ -20,5 +20,4 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 /* RGB Matrix setup */
 #define RGB_MATRIX_LED_COUNT 2
-#define RGBLED_NUM 2
 #define WS2812_PIO_USE_PIO1 // Force the usage of PIO1 peripheral, by default the WS2812 implementation uses the PIO0 peripheral

+ 0 - 1
keyboards/abstract/ellipse/rev1/config.h

@@ -17,7 +17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-   #define RGBLED_NUM 3
    #define RGBLIGHT_HUE_STEP 8
    #define RGBLIGHT_SAT_STEP 8
    #define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/abstract/ellipse/rev1/info.json

@@ -25,6 +25,7 @@
         "levels": 15
     },
     "rgblight": {
+        "led_count": 3,
         "sleep": true
     },
     "ws2812": {

+ 0 - 1
keyboards/acekeyboard/titan60/config.h

@@ -17,7 +17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-#    define RGBLED_NUM 6
 #    define RGBLIGHT_HUE_STEP 8
 #    define RGBLIGHT_SAT_STEP 8
 #    define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/acekeyboard/titan60/info.json

@@ -18,6 +18,7 @@
       "breathing": true
     },
     "rgblight": {
+      "led_count": 6,
       "sleep": true
     },
     "ws2812": {

+ 0 - 1
keyboards/acheron/athena/alpha/config.h

@@ -24,7 +24,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define BACKLIGHT_PWM_CHANNEL   1
 #define BACKLIGHT_PAL_MODE      2
 
-#define RGBLED_NUM 34
 #define RGBLIGHT_EFFECT_BREATHING
 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL

+ 3 - 0
keyboards/acheron/athena/alpha/info.json

@@ -15,6 +15,9 @@
         "on_state": 0,
         "breathing": true
     },
+    "rgblight": {
+        "led_count": 34
+    },
     "ws2812": {
         "pin": "B15"
     },

+ 0 - 1
keyboards/acheron/athena/beta/config.h

@@ -24,7 +24,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define BACKLIGHT_PWM_CHANNEL   3
 #define BACKLIGHT_PAL_MODE      2
 
-#define RGBLED_NUM 34
 #define RGBLIGHT_EFFECT_BREATHING
 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL

+ 3 - 0
keyboards/acheron/athena/beta/info.json

@@ -14,6 +14,9 @@
         "levels": 20,
         "breathing": true
     },
+    "rgblight": {
+        "led_count": 34
+    },
     "ws2812": {
         "pin": "B15"
     },

+ 0 - 1
keyboards/acheron/elongate/beta/config.h

@@ -17,7 +17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-  #define RGBLED_NUM 16
   #define RGBLIGHT_HUE_STEP 8
   #define RGBLIGHT_SAT_STEP 8
   #define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/acheron/elongate/beta/info.json

@@ -9,6 +9,7 @@
         "device_version": "0.0.1"
     },
     "rgblight": {
+        "led_count": 16,
         "sleep": true
     },
     "ws2812": {

+ 0 - 1
keyboards/acheron/elongate/delta/config.h

@@ -21,7 +21,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define BACKLIGHT_PWM_CHANNEL 1
 #define BACKLIGHT_PAL_MODE 1
 
-#define RGBLED_NUM 16
 #define RGBLIGHT_EFFECT_BREATHING
 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL

+ 1 - 0
keyboards/acheron/elongate/delta/info.json

@@ -20,6 +20,7 @@
         "breathing_period": 3
     },
     "rgblight": {
+        "led_count": 16,
         "max_brightness": 200,
         "sleep": true
     },

+ 0 - 1
keyboards/acheron/shark/beta/config.h

@@ -24,7 +24,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define BACKLIGHT_PWM_CHANNEL   1
 #define BACKLIGHT_PAL_MODE      2
 
-#define RGBLED_NUM 24
 #define RGBLIGHT_EFFECT_BREATHING
 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL

+ 3 - 0
keyboards/acheron/shark/beta/info.json

@@ -14,6 +14,9 @@
             {"pin_a": "C15", "pin_b": "C14"}
         ]
     },
+    "rgblight": {
+        "led_count": 24
+    },
     "ws2812": {
         "pin": "B15"
     },

+ 0 - 1
keyboards/ada/ada1800mini/config.h

@@ -17,7 +17,6 @@
 #pragma once
 
 //TODO: implement RGB matrix when I get the hardware
-    #define RGBLED_NUM 100
     #define RGBLIGHT_HUE_STEP 8
     #define RGBLIGHT_SAT_STEP 8
     #define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/ada/ada1800mini/info.json

@@ -12,6 +12,7 @@
         "pin": "F0"
     },
     "rgblight": {
+        "led_count": 100,
         "max_brightness": 200,
         "sleep": true
     },

+ 0 - 1
keyboards/ada/infinity81/config.h

@@ -3,7 +3,6 @@
 
 #pragma once
 
-#    define RGBLED_NUM 107
 #    define RGBLIGHT_HUE_STEP 8
 #    define RGBLIGHT_SAT_STEP 8
 #    define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/ada/infinity81/info.json

@@ -9,6 +9,7 @@
         "device_version": "0.0.1"
     },
     "rgblight": {
+        "led_count": 107,
         "sleep": true
     },
     "ws2812": {

+ 0 - 1
keyboards/adafruit/macropad/config.h

@@ -55,7 +55,6 @@
 
      /* RGB Defines */
 #    define RGB_MATRIX_LED_COUNT 12
-#    define RGBLED_NUM 12
 
      /* Enable Framebuffer and keypress effects */
 #    define RGB_MATRIX_FRAMEBUFFER_EFFECTS

+ 0 - 1
keyboards/adpenrose/kintsugi/config.h

@@ -20,7 +20,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define TAP_CODE_DELAY 10
 
 /* Underglow options: */
-#    define RGBLED_NUM 16
 #    define RGBLIGHT_HUE_STEP 8
 #    define RGBLIGHT_SAT_STEP 8
 #    define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/adpenrose/kintsugi/info.json

@@ -9,6 +9,7 @@
         "device_version": "1.0.0"
     },
     "rgblight": {
+        "led_count": 16,
         "sleep": true
     },
     "ws2812": {

+ 0 - 1
keyboards/adpenrose/obi/config.h

@@ -6,7 +6,6 @@
 #define TAP_CODE_DELAY 10
 
 /* Underglow options: */
-#    define RGBLED_NUM 16
 #    define RGBLIGHT_HUE_STEP 8
 #    define RGBLIGHT_SAT_STEP 8
 #    define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/adpenrose/obi/info.json

@@ -8,6 +8,7 @@
         "vid": "0x4450"
     },
     "rgblight": {
+        "led_count": 16,
         "sleep": true
     },
     "ws2812": {

+ 0 - 1
keyboards/aeboards/ext65/rev2/config.h

@@ -27,7 +27,6 @@
 #define RGBLIGHT_EFFECT_RGB_TEST
 #define RGBLIGHT_EFFECT_ALTERNATING
 #define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 24
 
 //SPI
 #define WS2812_SPI SPID2

+ 3 - 0
keyboards/aeboards/ext65/rev2/info.json

@@ -12,6 +12,9 @@
         "levels": 6,
         "breathing": true
     },
+    "rgblight": {
+        "led_count": 24
+    },
     "ws2812": {
         "pin": "B15",
         "driver": "spi"

+ 0 - 1
keyboards/ai03/polaris/config.h

@@ -17,7 +17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-  #define RGBLED_NUM 14
   #define RGBLIGHT_HUE_STEP 8
   #define RGBLIGHT_SAT_STEP 8
   #define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/ai03/polaris/info.json

@@ -19,6 +19,7 @@
         "breathing": true
     },
     "rgblight": {
+        "led_count": 14,
         "max_brightness": 200,
         "sleep": true
     },

+ 0 - 1
keyboards/ai03/voyager60_alps/config.h

@@ -14,7 +14,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-  #define RGBLED_NUM 14
   #define RGBLIGHT_HUE_STEP 8
   #define RGBLIGHT_SAT_STEP 8
   #define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/ai03/voyager60_alps/info.json

@@ -9,6 +9,7 @@
         "device_version": "0.0.1"
     },
     "rgblight": {
+        "led_count": 14,
         "sleep": true
     },
     "ws2812": {

+ 0 - 1
keyboards/aleblazer/zodiark/config.h

@@ -19,7 +19,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define SELECT_SOFT_SERIAL_SPEED 1
 
 #ifdef RGBLIGHT_ENABLE
-#define RGBLED_NUM 68
 #define RGBLIGHT_EFFECT_BREATHING
 #define RGBLIGHT_EFFECT_RAINBOW_MOOD
 #define RGBLIGHT_EFFECT_RAINBOW_SWIRL

+ 1 - 0
keyboards/aleblazer/zodiark/info.json

@@ -12,6 +12,7 @@
         "pin": "B5"
     },
     "rgblight": {
+        "led_count": 68,
         "max_brightness": 170,
         "split_count": [34, 34]
     },

+ 0 - 1
keyboards/alf/dc60/config.h

@@ -27,7 +27,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #define RGBLIGHT_EFFECT_RGB_TEST
 #define RGBLIGHT_EFFECT_ALTERNATING
 #define RGBLIGHT_EFFECT_TWINKLE
-#define RGBLED_NUM 20
 #define RGBLIGHT_HUE_STEP 8
 #define RGBLIGHT_SAT_STEP 8
 #define RGBLIGHT_VAL_STEP 8

+ 3 - 0
keyboards/alf/dc60/info.json

@@ -17,6 +17,9 @@
         "levels": 5,
         "breathing": true
     },
+    "rgblight": {
+        "led_count": 20
+    },
     "ws2812": {
         "pin": "E6"
     },

+ 0 - 1
keyboards/alf/x11/config.h

@@ -17,7 +17,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 #pragma once
 
-  #define RGBLED_NUM 28
   #define RGBLIGHT_HUE_STEP 8
   #define RGBLIGHT_SAT_STEP 8
   #define RGBLIGHT_VAL_STEP 8

+ 1 - 0
keyboards/alf/x11/info.json

@@ -18,6 +18,7 @@
     "breathing": true
   },
   "rgblight": {
+    "led_count": 28,
     "sleep": true
   },
   "ws2812": {

+ 0 - 1
keyboards/alf/x2/config.h

@@ -32,7 +32,6 @@
 #    define RGBLIGHT_EFFECT_RGB_TEST
 #    define RGBLIGHT_EFFECT_ALTERNATING
 #    define RGBLIGHT_EFFECT_TWINKLE
-#    define RGBLED_NUM 4
 #    define RGBLIGHT_HUE_STEP 8
 #    define RGBLIGHT_SAT_STEP 8
 #    define RGBLIGHT_VAL_STEP 8

+ 3 - 0
keyboards/alf/x2/info.json

@@ -17,6 +17,9 @@
         "caps_lock": "B2",
         "on_state": 0
     },
+    "rgblight": {
+        "led_count": 4
+    },
     "ws2812": {
         "pin": "E2"
     },

Some files were not shown because too many files changed in this diff