2020-04-13 07:32:46 +02:00
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
|
|
|
|
enum layer_names {
|
2022-09-19 01:01:05 +02:00
|
|
|
_MAIN,
|
|
|
|
_FN1,
|
|
|
|
_FN2,
|
|
|
|
_FN3
|
2020-04-13 07:32:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
|
2022-09-19 01:01:05 +02:00
|
|
|
[_MAIN] = LAYOUT(
|
2020-04-13 07:32:46 +02:00
|
|
|
KC_MPLY, KC_HOME, KC_MUTE,
|
|
|
|
MO(1), KC_UP, RGB_MOD,
|
|
|
|
KC_LEFT, KC_DOWN, KC_RGHT
|
|
|
|
),
|
|
|
|
|
2022-09-19 01:01:05 +02:00
|
|
|
[_FN1] = LAYOUT(
|
|
|
|
QK_BOOT, BL_STEP, KC_STOP,
|
2020-04-13 07:32:46 +02:00
|
|
|
_______, KC_HOME, RGB_MOD,
|
|
|
|
KC_MPRV, KC_END , KC_MNXT
|
|
|
|
),
|
|
|
|
|
2022-09-19 01:01:05 +02:00
|
|
|
[_FN2] = LAYOUT(
|
2020-04-13 07:32:46 +02:00
|
|
|
_______, _______, _______,
|
|
|
|
_______, _______, _______,
|
|
|
|
_______, _______, _______
|
|
|
|
),
|
|
|
|
|
2022-09-19 01:01:05 +02:00
|
|
|
[_FN3] = LAYOUT(
|
2020-04-13 07:32:46 +02:00
|
|
|
_______, _______, _______,
|
|
|
|
_______, _______, _______,
|
|
|
|
_______, _______, _______
|
|
|
|
)
|
|
|
|
|
|
|
|
};
|
2022-09-19 01:01:05 +02:00
|
|
|
|
|
|
|
#ifdef ENCODER_MAP_ENABLE
|
|
|
|
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
|
|
|
|
[_MAIN] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU), ENCODER_CCW_CW(KC_UP, KC_DOWN), ENCODER_CCW_CW(KC_PGUP, KC_PGDN) },
|
|
|
|
[_FN1] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI), ENCODER_CCW_CW(RGB_SAD, RGB_SAI), ENCODER_CCW_CW(RGB_VAD, RGB_VAI) },
|
|
|
|
[_FN2] = { ENCODER_CCW_CW(RGB_RMOD, RGB_MOD), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
|
|
|
|
[_FN3] = { ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______), ENCODER_CCW_CW(_______, _______) },
|
|
|
|
};
|
|
|
|
#endif
|