Move LED indicator config to data driven (#19800)

This commit is contained in:
Ryan
2023-02-17 13:14:29 +11:00
committed by GitHub
parent d784f78bd0
commit f4ba17c4a0
979 changed files with 1935 additions and 2171 deletions

View File

@@ -58,9 +58,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_LEVELS 3
#endif
#define LED_CAPS_LOCK_PIN C7
#define LED_PIN_ON_STATE 0
#define RGB_DI_PIN E2
#ifdef RGB_DI_PIN
#define RGBLED_NUM 20 /* 16 underglow LEDs, 4 top LEDs */

View File

@@ -6,6 +6,10 @@
"vid": "0x6964",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "C7",
"on_state": 0
},
"bootmagic": {
"matrix": [0, 5]
},

View File

@@ -42,8 +42,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define BACKLIGHT_LEVELS 3
#endif
#define LED_CAPS_LOCK_PIN C7
#define RGB_DI_PIN E2
#ifdef RGB_DI_PIN
#define RGBLIGHT_EFFECT_ALTERNATING

View File

@@ -8,6 +8,9 @@
"pid": "0x0087",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "C7"
},
"processor": "atmega32u4",
"bootloader": "atmel-dfu",
"community_layouts": ["tkl_ansi"],

View File

@@ -30,10 +30,6 @@
/* COL2ROW or ROW2COL */
#define DIODE_DIRECTION ROW2COL
#define LED_NUM_LOCK_PIN C6
#define LED_CAPS_LOCK_PIN C7
#define LED_PIN_ON_STATE 0
#define BACKLIGHT_PIN B6
#ifdef BACKLIGHT_PIN
#define BACKLIGHT_LEVELS 7

View File

@@ -8,6 +8,11 @@
"pid": "0x0096",
"device_version": "0.0.1"
},
"indicators": {
"caps_lock": "C7",
"num_lock": "C6",
"on_state": 0
},
"bootmagic": {
"matrix": [5, 0]
},