2022-03-14 18:08:10 +00:00
|
|
|
// 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(
|
2023-06-19 15:46:27 +00:00
|
|
|
RGB_MOD, // Big Switch
|
|
|
|
TL_LOWR, KC_MUTE // Encoder presses
|
2022-03-14 18:08:10 +00:00
|
|
|
),
|
|
|
|
[_FN1] = LAYOUT(
|
|
|
|
KC_B, // Big Switch
|
2023-06-19 15:46:27 +00:00
|
|
|
_______, KC_C // Encoder presses
|
2022-03-14 18:08:10 +00:00
|
|
|
),
|
|
|
|
[_FN2] = LAYOUT(
|
|
|
|
_______, // Big Switch
|
2023-06-19 15:46:27 +00:00
|
|
|
_______, _______ // Encoder presses
|
2022-03-14 18:08:10 +00:00
|
|
|
),
|
|
|
|
[_FN3] = LAYOUT(
|
|
|
|
_______, // Big Switch
|
2023-06-19 15:46:27 +00:00
|
|
|
_______, _______ // Encoder presses
|
2022-03-14 18:08:10 +00:00
|
|
|
)
|
|
|
|
};
|
2023-06-19 15:46:27 +00:00
|
|
|
|
|
|
|
#ifdef ENCODER_MAP_ENABLE
|
2023-07-03 00:19:52 +00:00
|
|
|
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
2023-06-19 15:46:27 +00:00
|
|
|
[0] = { ENCODER_CCW_CW(KC_DOWN, KC_UP), ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
|
|
|
[1] = { ENCODER_CCW_CW(KC_PGDN, KC_PGUP), ENCODER_CCW_CW(_______, _______) },
|
|
|
|
[2] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
|
|
|
|
[3] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) }
|
|
|
|
};
|
|
|
|
#endif
|