kimiko: mirror encoder pins between halves (#21728)

This commit is contained in:
Charles Strahan 2023-09-21 00:23:18 -05:00 committed by GitHub
parent e91bf4583f
commit 5858efd6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 7 deletions

View File

@ -1,3 +1,7 @@
// Copyright 2019 MechMerlin
// Copyright 2020 @ben_roe (keycapsss.com)
// SPDX-License-Identifier: GPL-2.0-or-later
#include "progmem.h" #include "progmem.h"
// Corne 8x6 font // Corne 8x6 font

View File

@ -334,11 +334,11 @@ bool oled_task_user(void) {
#if defined(ENCODER_MAP_ENABLE) #if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
[_QWERTY] = { ENCODER_CCW_CW(KC_UP, KC_DOWN), ENCODER_CCW_CW(KC_RGHT, KC_LEFT) }, [_QWERTY] = { ENCODER_CCW_CW(KC_DOWN, KC_UP), ENCODER_CCW_CW(KC_LEFT, KC_RGHT) },
[_LOWER] = { ENCODER_CCW_CW(KC_TAB, RGB_HUI), ENCODER_CCW_CW(KC_VOLU, KC_VOLD) }, [_LOWER] = { ENCODER_CCW_CW(RGB_HUI, KC_TAB), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[_RAISE] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI), ENCODER_CCW_CW(RGB_SPD, RGB_SPI) }, [_RAISE] = { ENCODER_CCW_CW(RGB_VAD, RGB_VAI), ENCODER_CCW_CW(RGB_SPD, RGB_SPI) },
[_ADJUST] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD), ENCODER_CCW_CW(RGB_HUI, RGB_HUD) }, [_ADJUST] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD), ENCODER_CCW_CW(RGB_SAD, RGB_SAI) },
}; };
#endif // ENCODER_MAP_ENABLE #endif // ENCODER_MAP_ENABLE

View File

@ -15,11 +15,18 @@
"diode_direction": "COL2ROW", "diode_direction": "COL2ROW",
"encoder": { "encoder": {
"rotary": [ "rotary": [
{"pin_a": "F4", "pin_b": "F5"} {"pin_a": "F5", "pin_b": "F4"}
] ]
}, },
"split": { "split": {
"soft_serial_pin": "D2" "soft_serial_pin": "D2",
"encoder": {
"right": {
"rotary": [
{"pin_a": "F4", "pin_b": "F5"}
]
}
}
}, },
"rgblight": { "rgblight": {
"led_count": 60, "led_count": 60,