mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-25 01:47:10 +06:00
Update q2
This commit is contained in:
parent
eae897fee1
commit
8770893f95
|
@ -194,7 +194,7 @@ static void encoder_pad_cb(void *param) {
|
|||
encoder_inerrupt_read((uint32_t)param & 0XFF);
|
||||
}
|
||||
|
||||
void keyboard_post_init_kb(void) {
|
||||
__attribute__((weak)) void keyboard_post_init_kb(void) {
|
||||
pin_t encoders_pad_a[NUM_ENCODERS] = ENCODERS_PAD_A;
|
||||
pin_t encoders_pad_b[NUM_ENCODERS] = ENCODERS_PAD_B;
|
||||
for (uint32_t i = 0; i < NUM_ENCODERS; i++) {
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
"diode_direction": "ROW2COL",
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "A10", "pin_b": "B8"}
|
||||
{"pin_a": "A10", "pin_b": "B5"}
|
||||
]
|
||||
},
|
||||
"processor": "STM32L432",
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
"diode_direction": "ROW2COL",
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "A10", "pin_b": "B8"}
|
||||
{"pin_a": "A10", "pin_b": "B5"}
|
||||
]
|
||||
},
|
||||
"processor": "STM32L432",
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
"console": false,
|
||||
"dip_switch": true,
|
||||
"encoder": true,
|
||||
"encoder_map": true,
|
||||
"extrakey": true,
|
||||
"mousekey": true,
|
||||
"nkro": true,
|
||||
|
@ -29,7 +30,7 @@
|
|||
"diode_direction": "ROW2COL",
|
||||
"encoder": {
|
||||
"rotary": [
|
||||
{"pin_a": "A10", "pin_b": "B8"}
|
||||
{"pin_a": "A10", "pin_b": "B5"}
|
||||
]
|
||||
},
|
||||
"processor": "STM32L432",
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
ENCODER_MAP_ENABLE = yes
|
|
@ -65,12 +65,18 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______)
|
||||
};
|
||||
|
||||
// clang-format on
|
||||
|
||||
#if defined(ENCODER_MAP_ENABLE)
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {[MAC_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)}, [WIN_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)}, [MAC_FN1] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI)}, [WIN_FN1] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI)}, [_FN2] = {ENCODER_CCW_CW(_______, _______)}};
|
||||
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
|
||||
[MAC_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
|
||||
[WIN_BASE] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
|
||||
[MAC_FN1] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI)},
|
||||
[WIN_FN1] = {ENCODER_CCW_CW(RGB_VAD, RGB_VAI)},
|
||||
[_FN2] = {ENCODER_CCW_CW(_______, _______)}
|
||||
};
|
||||
#endif // ENCODER_MAP_ENABLE
|
||||
|
||||
// clang-format on
|
||||
|
||||
void housekeeping_task_user(void) {
|
||||
housekeeping_task_keychron();
|
||||
housekeeping_task_keychron_ft();
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
VIA_ENABLE = yes
|
||||
ENCODER_MAP_ENABLE = yes
|
||||
|
||||
VPATH += keyboards/keychron/common
|
||||
SRC += keychron_common.c keychron_ft_common.c
|
||||
|
|
|
@ -1,2 +1 @@
|
|||
VIA_ENABLE = yes
|
||||
ENCODER_MAP_ENABLE = yes
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# Build Options
|
||||
# change yes to no to disable.
|
||||
#
|
||||
RGB_MATRIX_DRIVER = CKLED2001
|
||||
EEPROM_DRIVER = wear_leveling
|
||||
WEAR_LEVELING_DRIVER = embedded_flash
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user