Move backlight config to data driven (#19910)
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
"pid": "0x0404",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "D5",
|
||||
"levels": 6
|
||||
},
|
||||
"processor": "atmega16u2",
|
||||
"bootloader": "atmel-dfu",
|
||||
"matrix_pins": {
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -4,6 +4,8 @@
|
||||
"pid": "0x6060"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "F5",
|
||||
"levels": 6,
|
||||
"on_state": 0
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -4,6 +4,8 @@
|
||||
"pid": "0x6363"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "F5",
|
||||
"levels": 6,
|
||||
"on_state": 0
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
|
@@ -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 */
|
||||
|
@@ -9,6 +9,9 @@
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "F5",
|
||||
"levels": 6,
|
||||
"breathing": true,
|
||||
"on_state": 0
|
||||
},
|
||||
"indicators": {
|
||||
|
@@ -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
|
||||
|
@@ -9,6 +9,8 @@
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "F5",
|
||||
"levels": 6,
|
||||
"on_state": 0
|
||||
},
|
||||
"processor": "atmega32u4",
|
||||
|
@@ -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
|
||||
|
@@ -9,6 +9,8 @@
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B5",
|
||||
"levels": 10,
|
||||
"on_state": 0
|
||||
},
|
||||
"indicators": {
|
||||
|
@@ -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 */
|
||||
|
@@ -9,6 +9,8 @@
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "F5",
|
||||
"levels": 10,
|
||||
"on_state": 0
|
||||
},
|
||||
"indicators": {
|
||||
|
@@ -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
|
||||
|
@@ -9,6 +9,7 @@
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "D0",
|
||||
"on_state": 0
|
||||
},
|
||||
"indicators": {
|
||||
|
@@ -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
|
||||
|
@@ -8,6 +8,10 @@
|
||||
"pid": "0x9696",
|
||||
"device_version": "0.0.1"
|
||||
},
|
||||
"backlight": {
|
||||
"pin": "B5",
|
||||
"levels": 10
|
||||
},
|
||||
"indicators": {
|
||||
"caps_lock": "B6",
|
||||
"num_lock": "C6",
|
||||
|
Reference in New Issue
Block a user