Move backlight config to data driven (#19910)

This commit is contained in:
Ryan
2023-02-26 08:37:57 +11:00
committed by GitHub
parent ba7546a334
commit 314f6c1ddb
1003 changed files with 1873 additions and 1684 deletions

View File

@@ -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

View File

@@ -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": {

View File

@@ -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