summaryrefslogtreecommitdiffstats
path: root/keyboards/keebio/bamfk1/keymaps/via/keymap.c
blob: e7cde2d7ee5546b91a77a0fd9f3a9f0c3c3d39be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2021 Danny Nguyen (@nooges)
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

// Defines names for use in layer keycodes and the keymap
enum layer_names {
    _MAIN,
    _FN1,
    _FN2,
    _FN3
};

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
    [_MAIN] = LAYOUT(
        RGB_MOD,            // Big Switch
        FN_MO13, KC_MUTE,   // Encoder presses
        KC_DOWN, KC_UP,     // Left encoder turns
        KC_VOLD, KC_VOLU    // Right encoder turns
    ),
    [_FN1] = LAYOUT(
        KC_B,               // Big Switch
        _______, KC_C,      // Encoder presses
        KC_PGDN, KC_PGUP,   // Left encoder turns
        KC_VOLU, KC_VOLD    // Right encoder turns
    ),
    [_FN2] = LAYOUT(
        _______,            // Big Switch
        _______, _______,   // Encoder presses
        _______, _______,   // Left encoder turns
        _______, _______    // Right encoder turns
    ),
    [_FN3] = LAYOUT(
        _______,            // Big Switch
        _______, _______,   // Encoder presses
        _______, _______,   // Left encoder turns
        _______, _______    // Right encoder turns
    )
};