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

@@ -6,7 +6,6 @@
#define MATRIX_COL_PINS {E6, F4, B7, D5, D3, D2, F6, F7, C7, C6, B6, B5, B4, D7, D6, D4}
#define RGBLED_NUM 20 // Number of LEDs
#define BACKLIGHT_LEVELS 8
#define BACKLIGHT_PWM_MAP {8, 16, 40, 55, 70, 128, 200, 255}
#define RGB_DI_PIN C7 // Have to set it to something to get the ws2812 code to compile

View File

@@ -8,6 +8,9 @@
"pid": "0x6064",
"device_version": "0.0.1"
},
"backlight": {
"levels": 8
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -21,7 +21,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_LEVELS 8
#define BACKLIGHT_PWM_MAP { 8, 16, 40, 55, 70, 128, 200, 255 }
#define TAPPING_TERM 200

View File

@@ -8,6 +8,10 @@
"pid": "0x3738",
"device_version": "0.0.1"
},
"backlight": {
"driver": "custom",
"levels": 8
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -8,6 +8,10 @@
"pid": "0x3738",
"device_version": "0.0.1"
},
"backlight": {
"driver": "custom",
"levels": 8
},
"processor": "at90usb1286",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -8,6 +8,10 @@
"pid": "0x3738",
"device_version": "0.0.1"
},
"backlight": {
"driver": "custom",
"levels": 8
},
"processor": "at90usb646",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -8,7 +8,6 @@ CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = yes # Enable N-Key Rollover
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
BACKLIGHT_DRIVER = custom
AUDIO_ENABLE = no # Audio output
RGBLIGHT_ENABLE = yes # Enable WS2812 RGB underlight.
RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lfkeyboards, not qmk base

View File

@@ -40,7 +40,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define AUDIO_VOICES
#define AUDIO_PIN C6
#define BACKLIGHT_LEVELS 10
#define BACKLIGHT_PWM_MAP {2, 4, 8, 16, 40, 55, 70, 128, 200, 255}
#define RGB_DI_PIN F4 // Have to set it to something to get the ws2812 code to compile

View File

@@ -8,6 +8,10 @@
"pid": "0x6060",
"device_version": "0.0.1"
},
"backlight": {
"driver": "custom",
"levels": 10
},
"community_layouts": ["tkl_ansi", "tkl_iso"],
"layouts": {
"LAYOUT_tkl_ansi": {

View File

@@ -22,7 +22,6 @@ CONSOLE_ENABLE = no # Console for debug
COMMAND_ENABLE = no # Commands for debug and configuration
NKRO_ENABLE = yes # Enable N-Key Rollover
BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
BACKLIGHT_DRIVER = custom
AUDIO_ENABLE = yes # Audio output
RGBLIGHT_ENABLE = yes # Enable RGB underlight
RGBLIGHT_CUSTOM_DRIVER = yes # RGB code is implemented in lefkeyboards, not WS2812

View File

@@ -28,7 +28,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define AUDIO_VOICES
#define AUDIO_PIN C6
#define BACKLIGHT_LEVELS 10
#define BACKLIGHT_PWM_MAP {2, 4, 8, 16, 40, 55, 70, 128, 200, 255}
#define RGB_DI_PIN F4 // Have to set it to something to get the ws2812 code to compile

View File

@@ -8,6 +8,10 @@
"pid": "0x6060",
"device_version": "0.0.1"
},
"backlight": {
"driver": "custom",
"levels": 10
},
"layouts": {
"LAYOUT": {
"layout": [

View File

@@ -9,7 +9,6 @@
#include "lighting.h"
#include "debug.h"
#define BACKLIGHT_BREATHING
#include "quantum.h"
uint16_t click_hz = CLICK_HZ;

View File

@@ -13,7 +13,6 @@ AUDIO_ENABLE = yes # Audio output
# RGB code is implemented in lfkeyboards, not WS2812
RGBLIGHT_CUSTOM_DRIVER = yes
BACKLIGHT_DRIVER = custom
SLEEP_LED_ENABLE = yes
ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled

View File

@@ -13,7 +13,6 @@ AUDIO_ENABLE = yes # Audio output
# RGB code is implemented in lfkeyboards, not WS2812
RGBLIGHT_CUSTOM_DRIVER = yes
BACKLIGHT_DRIVER = custom
SLEEP_LED_ENABLE = yes
ISSI_ENABLE = yes # If the I2C pullup resistors aren't install this must be disabled

View File

@@ -31,7 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define AUDIO_VOICES
#define AUDIO_PIN C6
#define BACKLIGHT_LEVELS 8
#define BACKLIGHT_PWM_MAP {8, 16, 40, 55, 70, 128, 200, 255}
#define RGB_DI_PIN C7 // Have to set it to something to get the ws2812 code to compile

View File

@@ -2,6 +2,9 @@
"usb": {
"pid": "0x565B"
},
"backlight": {
"levels": 8
},
"processor": "at90usb646",
"bootloader": "atmel-dfu"
}