mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-22 03:19:24 +00:00
update skyloong/gk104/q1
This commit is contained in:
parent
1c1c8a4102
commit
930e25adf4
@ -5,6 +5,10 @@
|
||||
|
||||
#define MAC_PIN C13
|
||||
|
||||
#define MATRIX_ROWS 7
|
||||
#define MATRIX_COLS 16
|
||||
#define MATRIX_ROW_PINS {A8, A9, A10, A15, B6, B7, B9}
|
||||
|
||||
#ifdef ENCODER_ENABLE
|
||||
# define ENCODER_MAP_KEY_DELAY 10
|
||||
#endif
|
||||
|
@ -30,16 +30,11 @@
|
||||
},
|
||||
"indicators": {
|
||||
"num_lock": "C15",
|
||||
"on_state": 1,
|
||||
"caps_lock": "C14"
|
||||
},
|
||||
"dip_switch":{
|
||||
"pins":["A4"]
|
||||
},
|
||||
"matrix_pins": {
|
||||
"cols": [null, null, null, null, null, null, null, null, null, null, null, null, null, null, null,null],
|
||||
"rows": ["A8", "A9", "A10", "A15", "B6", "B7","B9"]
|
||||
},
|
||||
"processor": "STM32F103",
|
||||
"rgb_matrix": {
|
||||
"animations": {
|
||||
|
@ -18,7 +18,6 @@ extern matrix_row_t raw_matrix[MATRIX_ROWS]; // raw values
|
||||
extern matrix_row_t matrix[MATRIX_ROWS]; // debounced values
|
||||
|
||||
pin_t row_pins[MATRIX_ROWS] = MATRIX_ROW_PINS;
|
||||
pin_t col_pins[MATRIX_COLS] = MATRIX_COL_PINS;
|
||||
|
||||
// user-defined overridable functions
|
||||
__attribute__((weak)) void matrix_read_rows_on_col(matrix_row_t current_matrix[], uint8_t current_col, matrix_row_t row_shifter);
|
||||
|
@ -264,38 +264,20 @@ bool rgb_matrix_indicators_advanced_kb(uint8_t led_min, uint8_t led_max) {
|
||||
|
||||
//caps lock display
|
||||
if (host_keyboard_led_state().caps_lock) {
|
||||
// RGB_MATRIX_INDICATOR_SET_COLOR(CAPS_LOCK_INDEX, 255, 255, 255);
|
||||
IND = IND | CAPS_ON;
|
||||
} else {
|
||||
/*
|
||||
if (!rgb_matrix_get_flags()) {
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR(CAPS_LOCK_INDEX, 0, 0, 0);
|
||||
}
|
||||
*/
|
||||
IND = IND & (~CAPS_ON);
|
||||
}
|
||||
//number lock display
|
||||
if (host_keyboard_led_state().num_lock) {
|
||||
// RGB_MATRIX_INDICATOR_SET_COLOR(NUM_LOCK_INDEX, 255, 255, 255);
|
||||
IND = IND | NUM_ON;
|
||||
} else {
|
||||
/*
|
||||
if (!rgb_matrix_get_flags()) {
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR(NUM_LOCK_INDEX, 0, 0, 0);
|
||||
}
|
||||
*/
|
||||
IND = IND & (~NUM_ON);
|
||||
}
|
||||
//scroll lock display
|
||||
if (host_keyboard_led_state().scroll_lock) {
|
||||
// RGB_MATRIX_INDICATOR_SET_COLOR(SCR_LOCK_INDEX, 255, 255, 255);
|
||||
IND = IND | SCR_ON;
|
||||
} else {
|
||||
/*
|
||||
if (!rgb_matrix_get_flags()) {
|
||||
RGB_MATRIX_INDICATOR_SET_COLOR(SCR_LOCK_INDEX, 0, 0, 0);
|
||||
}
|
||||
*/
|
||||
IND = IND & (~SCR_ON);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user