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

@@ -7,6 +7,10 @@
"pid": "0x0404",
"device_version": "0.0.1"
},
"backlight": {
"pin": "D5",
"levels": 6
},
"processor": "atmega16u2",
"bootloader": "atmel-dfu",
"matrix_pins": {

View File

@@ -23,11 +23,6 @@ where some things are disabled to save space as well.
#pragma once
/* Backlight Setup */
// Looks like each backlight LED is connected to a single output, D5 is the one furtherst away from USB port
#define BACKLIGHT_PIN D5
#define BACKLIGHT_LEVELS 6
/* RGB Underglow
This will not be used, as RGBLIGHT_ENABLE is set to 'no' in rules.mk
We do not have enough space in the flash for this at the moment, maybe

View File

@@ -31,10 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
#define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B7, B5, B4, D7, D6, B3 }
/* Backlight Setup */
#define BACKLIGHT_PIN F5
#define BACKLIGHT_LEVELS 6
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

View File

@@ -4,6 +4,8 @@
"pid": "0x6060"
},
"backlight": {
"pin": "F5",
"levels": 6,
"on_state": 0
},
"processor": "atmega32u4",

View File

@@ -31,10 +31,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define MATRIX_ROW_PINS { D0, D1, D2, D3, D5 }
#define MATRIX_COL_PINS { F0, F1, E6, C7, C6, B6, D4, B1, B7, B5, B4, D7, D6, B3 }
/* Backlight Setup */
#define BACKLIGHT_PIN F5
#define BACKLIGHT_LEVELS 6
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION COL2ROW

View File

@@ -4,6 +4,8 @@
"pid": "0x6363"
},
"backlight": {
"pin": "F5",
"levels": 6,
"on_state": 0
},
"processor": "atmega32u4",

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 F5
#define BACKLIGHT_LEVELS 6
#define BACKLIGHT_BREATHING
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -9,6 +9,9 @@
"device_version": "0.0.1"
},
"backlight": {
"pin": "F5",
"levels": 6,
"breathing": true,
"on_state": 0
},
"indicators": {

View File

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

View File

@@ -9,6 +9,8 @@
"device_version": "0.0.1"
},
"backlight": {
"pin": "F5",
"levels": 6,
"on_state": 0
},
"processor": "atmega32u4",

View File

@@ -37,9 +37,6 @@
/* COL2ROW, ROW2COL */
//#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 10
#define RGB_DI_PIN C7
#define RGBLED_NUM 7
#define RGBLIGHT_EFFECT_BREATHING

View File

@@ -9,6 +9,8 @@
"device_version": "0.0.1"
},
"backlight": {
"pin": "B5",
"levels": 10,
"on_state": 0
},
"indicators": {

View File

@@ -42,9 +42,6 @@
#define RGBLIGHT_EFFECT_TWINKLE
#endif
#define BACKLIGHT_PIN F5
#define BACKLIGHT_LEVELS 10
/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */

View File

@@ -9,6 +9,8 @@
"device_version": "0.0.1"
},
"backlight": {
"pin": "F5",
"levels": 10,
"on_state": 0
},
"indicators": {

View File

@@ -36,8 +36,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
/* COL2ROW, ROW2COL*/
#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN D0
#define RGB_DI_PIN B7
#ifdef RGB_DI_PIN
#define RGBLIGHT_EFFECT_BREATHING

View File

@@ -9,6 +9,7 @@
"device_version": "0.0.1"
},
"backlight": {
"pin": "D0",
"on_state": 0
},
"indicators": {

View File

@@ -37,9 +37,6 @@
/* COL2ROW, ROW2COL */
//#define DIODE_DIRECTION COL2ROW
#define BACKLIGHT_PIN B5
#define BACKLIGHT_LEVELS 10
#define RGB_DI_PIN C7
#define RGBLED_NUM 16
#define RGBLIGHT_EFFECT_BREATHING

View File

@@ -8,6 +8,10 @@
"pid": "0x9696",
"device_version": "0.0.1"
},
"backlight": {
"pin": "B5",
"levels": 10
},
"indicators": {
"caps_lock": "B6",
"num_lock": "C6",