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

@@ -23,9 +23,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 6
#define RGBLIGHT_EFFECT_BREATHING
#define RGBLIGHT_EFFECT_RAINBOW_MOOD
#define RGBLIGHT_EFFECT_RAINBOW_SWIRL

View File

@@ -8,6 +8,10 @@
"pid": "0x4266",
"device_version": "2.0.0"
},
"backlight": {
"pin": "D4",
"levels": 6
},
"indicators": {
"caps_lock": "D1"
},

View File

@@ -8,11 +8,6 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION ROW2COL
#define BACKLIGHT_PIN B6
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 5
#endif
/* 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": "0x4D96",
"device_version": "0.0.1"
},
"backlight": {
"pin": "B6",
"levels": 5
},
"indicators": {
"caps_lock": "C7",
"num_lock": "C6",

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 D4
#define BACKLIGHT_LEVELS 12
#define BACKLIGHT_BREATHING
#define RGBLED_NUM 5
//#define RGBLIGHT_HUE_STEP 8
//#define RGBLIGHT_SAT_STEP 8

View File

@@ -7,6 +7,11 @@
"pid": "0x5021",
"device_version": "2.0.0"
},
"backlight": {
"pin": "D4",
"levels": 12,
"breathing": true
},
"indicators": {
"num_lock": "D0"
},

View File

@@ -23,11 +23,6 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION ROW2COL
#define BACKLIGHT_PIN B7
#ifdef BACKLIGHT_PIN
# define BACKLIGHT_LEVELS 31
#endif
#define RGB_DI_PIN E2
#ifdef RGB_DI_PIN
# define RGBLED_NUM 6

View File

@@ -7,6 +7,10 @@
"pid": "0x5024",
"device_version": "4.0.6"
},
"backlight": {
"pin": "B7",
"levels": 31
},
"indicators": {
"num_lock": "C6",
"on_state": 0

View File

@@ -32,9 +32,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION ROW2COL
#define BACKLIGHT_PIN B6
#define BACKLIGHT_LEVELS 5
#define RGB_DI_PIN E2
#ifdef RGB_DI_PIN
#define RGBLED_NUM 14

View File

@@ -8,6 +8,10 @@
"pid": "0x2975",
"device_version": "0.0.1"
},
"backlight": {
"pin": "B6",
"levels": 5
},
"indicators": {
"caps_lock": "C7",
"on_state": 0

View File

@@ -30,9 +30,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION ROW2COL
#define BACKLIGHT_PIN B6
#define BACKLIGHT_LEVELS 5
#define RGB_DI_PIN E2
#ifdef RGB_DI_PIN
#define RGBLED_NUM 80

View File

@@ -8,6 +8,10 @@
"pid": "0x4975",
"device_version": "0.0.1"
},
"backlight": {
"pin": "B6",
"levels": 5
},
"indicators": {
"caps_lock": "C7",
"on_state": 0

View File

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

View File

@@ -7,6 +7,10 @@
"vid": "0x594D",
"pid": "0x604D"
},
"backlight": {
"pin": "B7",
"levels": 5
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["60_ansi", "60_ansi_split_bs_rshift", "60_ansi_tsangan", "60_hhkb", "60_iso", "60_iso_split_bs_rshift", "60_iso_tsangan"],

View File

@@ -32,10 +32,6 @@
#define DIODE_DIRECTION ROW2COL
#define BACKLIGHT_PIN B6
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 5
#define RGB_DI_PIN E2
#if defined(RGBLIGHT_ENABLE)
#define RGBLED_NUM 20

View File

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

View File

@@ -32,9 +32,6 @@
#define DIODE_DIRECTION ROW2COL
#define BACKLIGHT_PIN B7
#define BACKLIGHT_BREATHING
#define RGB_DI_PIN E2
#if defined(RGBLIGHT_ENABLE)
#define RGBLED_NUM 8

View File

@@ -8,6 +8,10 @@
"pid": "0x0110",
"device_version": "0.0.1"
},
"backlight": {
"pin": "B7",
"breathing": true
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["ortho_6x4"],

View File

@@ -32,9 +32,6 @@
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN B7
#define BACKLIGHT_BREATHING
#if defined(RGBLIGHT_ENABLE)
#define RGB_DI_PIN E2
#define RGBLED_NUM 8

View File

@@ -8,6 +8,10 @@
"pid": "0x4440",
"device_version": "0.0.1"
},
"backlight": {
"pin": "B7",
"breathing": true
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["ortho_4x12"],

View File

@@ -8,11 +8,6 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN B7
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 5
#endif
/* 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": "0x6060",
"device_version": "0.0.1"
},
"backlight": {
"pin": "B7",
"levels": 5
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"layouts": {

View File

@@ -19,9 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once
#define BACKLIGHT_LEVELS 12
#define RGB_DI_PIN E2
#define RGBLED_NUM 16
#define RGBLIGHT_EFFECT_BREATHING

View File

@@ -21,5 +21,4 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { B0, B1, B2, B3, B4, B5, B6, B7 }
#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2, D7 }
#define BACKLIGHT_PIN D4
#define DIODE_DIRECTION COL2ROW

View File

@@ -2,6 +2,10 @@
"usb": {
"device_version": "1.0.0"
},
"backlight": {
"pin": "D4",
"levels": 12
},
"indicators": {
"caps_lock": "D1"
},

View File

@@ -2,5 +2,4 @@
#define MATRIX_ROW_PINS { B7, B6, B5, B4, B3, B0 }
#define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2, D7 }
#define BACKLIGHT_PIN D4
#define DIODE_DIRECTION COL2ROW

View File

@@ -2,6 +2,10 @@
"usb": {
"device_version": "2.0.0"
},
"backlight": {
"pin": "D4",
"levels": 12
},
"indicators": {
"caps_lock": "D1"
},

View File

@@ -2,6 +2,5 @@
#define MATRIX_ROW_PINS { B7, B3, B2, B1, B0, E6, F0, F1, F4, F5, F6, F7 }
#define MATRIX_COL_PINS { D0, D1, D2, D3, D5, D4, D6, D7, B4 }
#define BACKLIGHT_PIN B6 // change the backlight pin that has since changed in Rev 3
#define DIODE_DIRECTION ROW2COL
#define RGBLIGHT_EFFECT_KNIGHT_OFFSET 4

View File

@@ -2,6 +2,10 @@
"usb": {
"device_version": "3.0.0"
},
"backlight": {
"pin": "B6",
"levels": 12
},
"indicators": {
"caps_lock": "C7"
},

View File

@@ -25,10 +25,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN D4
#define BACKLIGHT_LEVELS 12
#define BACKLIGHT_BREATHING
#define TAPPING_TOGGLE 3
#define USB_MAX_POWER_CONSUMPTION 100

View File

@@ -8,6 +8,11 @@
"pid": "0x422D",
"device_version": "2.0.0"
},
"backlight": {
"pin": "D4",
"levels": 12,
"breathing": true
},
"indicators": {
"caps_lock": "D1",
"num_lock": "D0",