Move backlight config to data driven (#19910)
This commit is contained in:
@@ -25,11 +25,7 @@ Copyright 2021 Nathan Spears
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* Switch LED Backlighting */
|
||||
#define BACKLIGHT_PIN D1
|
||||
#define BACKLIGHT_PWM_DRIVER PWMD3
|
||||
#define BACKLIGHT_LEVELS 6
|
||||
#define BACKLIGHT_BREATHING
|
||||
|
||||
// ws2812 options
|
||||
#define RGB_DI_PIN D2 // pin the DI on the ws2812 is hooked-up to
|
||||
|
@@ -8,6 +8,11 @@
|
||||
"pid": "0x1416",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "D1",
|
||||
"levels": 6,
|
||||
"breathing": true
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layout_aliases": {
|
||||
|
@@ -30,11 +30,6 @@
|
||||
/* Locking resynchronize hack */
|
||||
#define LOCKING_RESYNC_ENABLE
|
||||
|
||||
/* Switch LED Backlighting */
|
||||
#define BACKLIGHT_PIN C4
|
||||
#define BACKLIGHT_LEVELS 6
|
||||
#define BACKLIGHT_BREATHING
|
||||
|
||||
// ws2812 options
|
||||
#define RGB_DI_PIN C5 // pin the DI on the ws2812 is hooked-up to
|
||||
#define RGBLIGHT_EFFECT_BREATHING
|
||||
|
@@ -8,6 +8,11 @@
|
||||
"pid": "0x5344",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "C4",
|
||||
"levels": 6,
|
||||
"breathing": true
|
||||
},
|
||||
"processor": "atmega32u2",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layouts": {
|
||||
|
@@ -8,7 +8,6 @@ CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||
NKRO_ENABLE = no # Enable N-Key Rollover
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
BACKLIGHT_DRIVER = pwm # Valid driver values are pwm, software, custom or no
|
||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
ENCODER_ENABLE = yes # Enable rotary encoder
|
||||
|
@@ -25,11 +25,6 @@ Copyright 2022 Nathan Spears
|
||||
/* COL2ROW or ROW2COL */
|
||||
#define DIODE_DIRECTION COL2ROW
|
||||
|
||||
/* Switch LED Backlighting */
|
||||
#define BACKLIGHT_PIN D1
|
||||
#define BACKLIGHT_LEVELS 6
|
||||
#define BACKLIGHT_BREATHING
|
||||
|
||||
// ws2812 options
|
||||
#define RGB_DI_PIN B1 // pin the DI on the ws2812 is hooked-up to
|
||||
#define RGBLIGHT_EFFECT_BREATHING
|
||||
|
@@ -8,6 +8,11 @@
|
||||
"pid": "0x2416",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "D1",
|
||||
"levels": 6,
|
||||
"breathing": true
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
"bootloader": "atmel-dfu",
|
||||
"layout_aliases": {
|
||||
|
@@ -8,7 +8,6 @@ CONSOLE_ENABLE = no # Console for debug
|
||||
COMMAND_ENABLE = yes # Commands for debug and configuration
|
||||
NKRO_ENABLE = yes # Enable N-Key Rollover
|
||||
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
|
||||
BACKLIGHT_DRIVER = pwm # Valid driver values are pwm, software, custom or no
|
||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||
AUDIO_ENABLE = no # Audio output
|
||||
ENCODER_ENBALE = yes # Enable Rotary Encoders
|
||||
|
Reference in New Issue
Block a user