2022-03-07 19:45:30 -08:00
|
|
|
// Copyright 2022 Sergey Vlasov (@sigprof)
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
|
|
|
|
// clang-format off
|
|
|
|
|
|
|
|
#define U_LTESC LT(1, KC_ESC)
|
|
|
|
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
2023-06-19 08:46:27 -07:00
|
|
|
[0] = LAYOUT_top(
|
2022-03-07 19:45:30 -08:00
|
|
|
KC_HOME, KC_MUTE, KC_MPLY,
|
|
|
|
KC_1, KC_2, KC_3, KC_4, KC_5,
|
|
|
|
KC_6, KC_7, KC_8, KC_9, KC_0,
|
|
|
|
U_LTESC, KC_TAB, KC_SPC, KC_BSPC, KC_ENT
|
|
|
|
),
|
2023-06-19 08:46:27 -07:00
|
|
|
[1] = LAYOUT_top(
|
2022-03-07 19:45:30 -08:00
|
|
|
RGB_M_P, RGB_M_B, RGB_M_R,
|
|
|
|
RGB_MOD, RGB_HUI, RGB_SAI, RGB_VAI, RGB_SPI,
|
|
|
|
RGB_RMOD,RGB_HUD, RGB_SAD, RGB_VAD, RGB_SPD,
|
|
|
|
KC_TRNS, RGB_TOG, RGB_M_P, RGB_M_B, RGB_M_R
|
|
|
|
),
|
2023-06-19 08:46:27 -07:00
|
|
|
[2 ... 7] = LAYOUT_top(
|
2022-03-07 19:45:30 -08:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS
|
|
|
|
),
|
|
|
|
};
|
|
|
|
|
|
|
|
// clang-format on
|
2023-06-19 08:46:27 -07:00
|
|
|
|
|
|
|
#ifdef ENCODER_MAP_ENABLE
|
2023-07-02 17:19:52 -07:00
|
|
|
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
2023-06-19 08:46:27 -07:00
|
|
|
[0] = { ENCODER_CCW_CW(KC_PGUP, KC_PGDN), ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_MPRV, KC_MNXT) },
|
|
|
|
[1] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI), ENCODER_CCW_CW(RGB_SAD, RGB_SAI), ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
|
|
|
|
[2 ... 7] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) }
|
|
|
|
};
|
|
|
|
#endif
|