~jojo/kyria-keymap

7949e9f7d12b2b395bbcf44d8629623db46b8bde — JoJo 4 months ago 5bcd582
Update for kyria 2.0 low profile robin board
2 files changed, 19 insertions(+), 6 deletions(-)

M keymap.c
M rules.mk
M keymap.c => keymap.c +17 -4
@@ 78,12 78,24 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
    ),
};

void encoder_update_user(uint8_t index, bool clockwise) {
#ifdef MASTER_LEFT
    bool side_clockwise = (index && OLD_ONE) ? clockwise : !clockwise;
bool encoder_update_user(uint8_t index, bool clockwise) {
    bool side_clockwise =
#ifdef VER_BLUE
// #ifdef MASTER_LEFT
//     bool side_clockwise = (index && OLD_ONE) ? clockwise : !clockwise;
// #else
//     bool side_clockwise = (index && OLD_ONE) ? !clockwise : clockwise;
// #endif
        FIXME
#elif VER_BROWN
        FIXME
#elif VER_ROBIN
        clockwise
#else
    bool side_clockwise = index ? !clockwise : clockwise;
#error Must supply keyboard version (VER_BLUE, VER_BROWN, VER_ROBIN)
#endif
    ;

    if (index == 0) {
        if (IS_LAYER_ON(FUNC)) {
            if (side_clockwise) tap_code16(KC_MEDIA_NEXT_TRACK);


@@ 99,4 111,5 @@ void encoder_update_user(uint8_t index, bool clockwise) {
        if (side_clockwise) tap_code(KC_VOLU);
        else                tap_code(KC_VOLD);
    }
    return false;
}

M rules.mk => rules.mk +2 -2
@@ 3,5 3,5 @@ ENCODER_ENABLE = yes       # Enables the use of one or more encoders
RGBLIGHT_ENABLE = no       # Enable keyboard RGB underglow
TAP_DANCE_ENABLE = yes     # Tap once for X, double tap for Y

OLD_ONE=please_build_with_make_and_set_var_OLD_ONE
CFLAGS += -DOLD_ONE=$(OLD_ONE)
VER=please_build_with_make_and_set_var_VER
CFLAGS += -D$(VER)