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

@@ -20,9 +20,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ENCODERS_PAD_A { D0, F6, B6 }
#define ENCODERS_PAD_B { D1, F5, F7 }
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 7
#define RGB_DI_PIN D3
#ifdef RGB_DI_PIN
#define RGBLED_NUM 4

View File

@@ -4,6 +4,10 @@
"pid": "0x1133",
"device_version": "1.0.0"
},
"backlight": {
"pin": "B5",
"levels": 7
},
"processor": "atmega32u4",
"bootloader": "caterina",
"matrix_pins": {

View File

@@ -8,9 +8,6 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 6
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

View File

@@ -8,6 +8,10 @@
"pid": "0x1144",
"device_version": "1.0.0"
},
"backlight": {
"pin": "B5",
"levels": 6
},
"processor": "atmega32u4",
"bootloader": "caterina",
"community_layouts": ["ortho_4x4"],

View File

@@ -8,8 +8,6 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN B5
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE

View File

@@ -8,6 +8,9 @@
"pid": "0x113A",
"device_version": "1.0.0"
},
"backlight": {
"pin": "B5"
},
"processor": "atmega32u4",
"bootloader": "caterina",
"community_layouts": ["ortho_3x10"],

View File

@@ -25,11 +25,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define TAP_CODE_DELAY 10
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN A6
#define BACKLIGHT_PWM_DRIVER PWMD3
#define BACKLIGHT_PWM_CHANNEL 1
#define BACKLIGHT_PAL_MODE 1
#define BACKLIGHT_LEVELS 7
#define RGB_DI_PIN D3
#ifdef RGB_DI_PIN

View File

@@ -8,6 +8,10 @@
"pid": "0x144C",
"device_version": "1.0.0"
},
"backlight": {
"pin": "A6",
"levels": 7
},
"processor": "STM32F072",
"bootloader": "stm32-dfu",
"layouts": {

View File

@@ -34,10 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN B5
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 7
#define RGB_DI_PIN B2
#ifdef RGB_DI_PIN
#define RGBLED_NUM 12

View File

@@ -8,6 +8,11 @@
"pid": "0x125F",
"device_version": "0.0.1"
},
"backlight": {
"pin": "B5",
"levels": 7,
"breathing": true
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -24,8 +24,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ENCODERS_PAD_A { F5 }
#define ENCODERS_PAD_B { F6 }
#define BACKLIGHT_PIN B5
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -8,6 +8,9 @@
"pid": "0x1258",
"device_version": "1.0.0"
},
"backlight": {
"pin": "B5"
},
"split": {
"soft_serial_pin": "D0"
},

View File

@@ -29,9 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define BACKLIGHT_PIN D2
#define BACKLIGHT_LEVELS 5
/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLED_NUM 12 // Number of LEDs

View File

@@ -4,6 +4,10 @@
"pid": "0x1256",
"device_version": "1.0.0"
},
"backlight": {
"pin": "D2",
"levels": 5
},
"split": {
"soft_serial_pin": "D0"
},

View File

@@ -29,9 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define BACKLIGHT_PIN B6
#define BACKLIGHT_LEVELS 5
/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLED_NUM 12 // Number of LEDs

View File

@@ -4,6 +4,10 @@
"pid": "0x1256",
"device_version": "1.1.0"
},
"backlight": {
"pin": "B6",
"levels": 5
},
"split": {
"soft_serial_pin": "D0"
},

View File

@@ -29,9 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 5
/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLED_NUM 12 // Number of LEDs

View File

@@ -4,6 +4,10 @@
"pid": "0x2256",
"device_version": "2.0.0"
},
"backlight": {
"pin": "B5",
"levels": 5
},
"split": {
"soft_serial_pin": "D0"
},

View File

@@ -33,9 +33,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define BACKLIGHT_PIN B6
#define BACKLIGHT_LEVELS 5
/* ws2812 RGB LED */
#define RGB_DI_PIN F7
#define RGBLED_NUM 12 // Number of LEDs

View File

@@ -4,6 +4,10 @@
"pid": "0x3256",
"device_version": "3.0.0"
},
"backlight": {
"pin": "B6",
"levels": 5
},
"qmk_lufa_bootloader": {
"esc_input": "D2",
"esc_output": "F1",

View File

@@ -37,9 +37,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 5
/* ws2812 RGB LED */
#define RGB_DI_PIN D6
#define RGBLED_NUM 12 // Number of LEDs

View File

@@ -4,6 +4,10 @@
"pid": "0x4256",
"device_version": "4.0.0"
},
"backlight": {
"pin": "B5",
"levels": 5
},
"qmk_lufa_bootloader": {
"esc_input": "B1",
"esc_output": "F1",

View File

@@ -32,8 +32,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 5
#define BACKLIGHT_DEFAULT_LEVEL 3
/* ws2812 RGB LED */

View File

@@ -4,6 +4,10 @@
"pid": "0x5256",
"device_version": "5.0.0"
},
"backlight": {
"pin": "B5",
"levels": 5
},
"qmk_lufa_bootloader": {
"esc_input": "B1",
"esc_output": "F1",

View File

@@ -30,7 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ENCODERS_PAD_A_RIGHT { D6, C7 }
#define ENCODERS_PAD_B_RIGHT { D4, C6 }
#define BACKLIGHT_PIN B5
#define CAPS_LOCK_LED_PIN B6
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */

View File

@@ -8,6 +8,9 @@
"pid": "0x126A",
"device_version": "1.0.0"
},
"backlight": {
"pin": "B5"
},
"split": {
"soft_serial_pin": "D0"
},

View File

@@ -34,7 +34,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGB_DI_PIN D3
#define RGBLED_NUM 12 // Number of LEDs
#define RGBLED_SPLIT { 6, 6 }
/* Backlight LEDs */
#define BACKLIGHT_PIN C6
#define BACKLIGHT_LEVELS 7

View File

@@ -6,5 +6,9 @@
"usb": {
"pid": "0x1146",
"device_version": "1.0.0"
},
"backlight": {
"pin": "C6",
"levels": 7
}
}

View File

@@ -34,7 +34,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGB_DI_PIN D3
#define RGBLED_NUM 12 // Number of LEDs
#define RGBLED_SPLIT { 6, 6 }
/* Backlight LEDs */
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 7

View File

@@ -6,5 +6,9 @@
"usb": {
"pid": "0x2146",
"device_version": "2.0.0"
},
"backlight": {
"pin": "B5",
"levels": 7
}
}

View File

@@ -37,7 +37,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGB_DI_PIN D7
#define RGBLED_NUM 12 // Number of LEDs
#define RGBLED_SPLIT { 6, 6 }
/* Backlight LEDs */
#define BACKLIGHT_PIN B6
#define BACKLIGHT_LEVELS 7

View File

@@ -6,5 +6,9 @@
"usb": {
"pid": "0x3146",
"device_version": "3.0.0"
},
"backlight": {
"pin": "B6",
"levels": 7
}
}

View File

@@ -34,10 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLED_NUM 12
#define RGBLED_SPLIT { 6, 6 }
/* Backlight LEDs */
#define BACKLIGHT_PIN B6
#define BACKLIGHT_LEVELS 7
/*
* Feature disable options
* These options are also useful to firmware size reduction.

View File

@@ -4,6 +4,10 @@
"pid": "0x2156",
"device_version": "2.0.0"
},
"backlight": {
"pin": "B6",
"levels": 7
},
"split": {
"soft_serial_pin": "D0"
},

View File

@@ -45,10 +45,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGBLED_NUM 12
#define RGBLED_SPLIT { 6, 6 }
/* Backlight LEDs */
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 7
/*
* Feature disable options
* These options are also useful to firmware size reduction.

View File

@@ -4,6 +4,10 @@
"pid": "0x3156",
"device_version": "3.0.0"
},
"backlight": {
"pin": "B5",
"levels": 7
},
"split": {
"soft_serial_pin": "D0"
},

View File

@@ -30,7 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ENCODERS_PAD_A_RIGHT { D6 }
#define ENCODERS_PAD_B_RIGHT { D4 }
#define BACKLIGHT_PIN B5
#define CAPS_LOCK_LED_PIN B6
/* ws2812 RGB LED */

View File

@@ -8,6 +8,9 @@
"pid": "0x2257",
"device_version": "2.0.0"
},
"backlight": {
"pin": "B5"
},
"split": {
"soft_serial_pin": "D0"
},

View File

@@ -30,7 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define ENCODERS_PAD_A_RIGHT { D6 }
#define ENCODERS_PAD_B_RIGHT { D4 }
#define BACKLIGHT_PIN B5
#define CAPS_LOCK_LED_PIN B6
/* ws2812 RGB LED */

View File

@@ -8,6 +8,9 @@
"pid": "0x3357",
"device_version": "3.1.0"
},
"backlight": {
"pin": "B5"
},
"split": {
"soft_serial_pin": "D0"
},

View File

@@ -29,9 +29,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 5
/* WS2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLIGHT_EFFECT_BREATHING

View File

@@ -8,6 +8,10 @@
"pid": "0x1246",
"device_version": "1.0.0"
},
"backlight": {
"pin": "B5",
"levels": 5
},
"split": {
"soft_serial_pin": "D0"
},

View File

@@ -34,10 +34,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN B5
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 7
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -8,6 +8,11 @@
"pid": "0x0510",
"device_version": "1.0.1"
},
"backlight": {
"pin": "B5",
"levels": 7,
"breathing": true
},
"processor": "atmega32u4",
"bootloader": "caterina",
"community_layouts": ["68_ansi"],

View File

@@ -34,7 +34,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGB_DI_PIN D3
#define RGBLED_NUM 14
#define RGBLED_SPLIT { 7, 7 }
/* Backlight LEDs */
#define BACKLIGHT_PIN B6
#define BACKLIGHT_LEVELS 7

View File

@@ -6,5 +6,9 @@
"usb": {
"pid": "0x2157",
"device_version": "2.0.0"
},
"backlight": {
"pin": "B6",
"levels": 7
}
}

View File

@@ -34,7 +34,3 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* ws2812 RGB LED */
#define RGB_DI_PIN D3
#define RGBLED_NUM 12 // Number of LEDs
/* Backlight LEDs */
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 7

View File

@@ -8,6 +8,10 @@
"pid": "0x1046",
"device_version": "1.0.0"
},
"backlight": {
"pin": "B5",
"levels": 7
},
"processor": "atmega32u4",
"bootloader": "caterina",
"community_layouts": ["ortho_4x12"],