Move RGBLED_NUM to data driven (#21278)

This commit is contained in:
Ryan 2023-06-18 14:39:07 +10:00 committed by GitHub
parent 7178645be7
commit b1783db4ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2160 changed files with 2194 additions and 2058 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -16,8 +16,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once #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_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_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 #define RGBLIGHT_VAL_STEP 17 // The number of steps to increment the brightness by

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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_MOSI_PAL_MODE 0
#define WS2812_SPI_SCK_PIN A5 #define WS2812_SPI_SCK_PIN A5
#define WS2812_SPI_SCK_PAL_MODE 0 #define WS2812_SPI_SCK_PAL_MODE 0
#define RGBLED_NUM 16
#define RGBLIGHT_HUE_STEP 8 #define RGBLIGHT_HUE_STEP 8
#define RGBLIGHT_SAT_STEP 8 #define RGBLIGHT_SAT_STEP 8
#define RGBLIGHT_VAL_STEP 8 #define RGBLIGHT_VAL_STEP 8

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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