2023-12-24 00:45:33 +01:00
|
|
|
// Copyright 2023 The Mad Noodle(@the_mad_noodle)
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
2020-06-04 01:25:59 +02:00
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
|
|
|
|
/* LAYER 0
|
2023-12-24 00:45:33 +01:00
|
|
|
* ,-------|ENCODER|-------.
|
|
|
|
* | << | MUTE | >> |
|
2020-06-04 01:25:59 +02:00
|
|
|
* |-------+-------+-------|
|
|
|
|
* | STOP | PLAY | MEDIA |
|
|
|
|
* |-------+-------+-------|
|
|
|
|
* | CALC | MAIL | PC/FN |
|
|
|
|
* `-----------------------'
|
|
|
|
*/
|
|
|
|
|
|
|
|
[0] = LAYOUT_ortho_3x3(
|
2023-12-24 00:45:33 +01:00
|
|
|
KC_MPRV, LT(2, KC_MUTE), KC_MNXT,
|
2020-06-04 01:25:59 +02:00
|
|
|
KC_MSTP, KC_MPLY, KC_MSEL,
|
|
|
|
KC_CALC, KC_MAIL, LT(1, KC_MYCM)
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
/* LAYER 1
|
2023-12-24 00:45:33 +01:00
|
|
|
* ,-------|ENCODER|-------.
|
|
|
|
* | MODE+ |RGB TOG| MODE- |
|
2020-06-04 01:25:59 +02:00
|
|
|
* |-------+-------+-------|
|
2023-12-24 00:45:33 +01:00
|
|
|
* |Bright-| PLAIN |Bright+|
|
2020-06-04 01:25:59 +02:00
|
|
|
* |-------+-------+-------|
|
2023-12-24 00:45:33 +01:00
|
|
|
* | SWIRL |BREATH | |
|
2020-06-04 01:25:59 +02:00
|
|
|
* `-----------------------'
|
|
|
|
*/
|
2023-12-24 00:45:33 +01:00
|
|
|
|
2020-06-04 01:25:59 +02:00
|
|
|
[1] = LAYOUT_ortho_3x3(
|
2023-12-24 00:45:33 +01:00
|
|
|
RGB_MOD, RGB_TOG, RGB_RMOD,
|
|
|
|
RGB_VAD, RGB_M_P, RGB_VAI,
|
|
|
|
LT(3,RGB_M_SW), RGB_M_B, KC_TRNS
|
2020-06-04 01:25:59 +02:00
|
|
|
),
|
|
|
|
|
2023-12-24 00:45:33 +01:00
|
|
|
|
|
|
|
/* LAYER 2
|
|
|
|
* ,-------|ENCODER|-------.
|
|
|
|
* | | | |
|
2020-06-04 01:25:59 +02:00
|
|
|
* |-------+-------+-------|
|
|
|
|
* | | | |
|
|
|
|
* |-------+-------+-------|
|
|
|
|
* | | | |
|
|
|
|
* `-----------------------'
|
|
|
|
*/
|
2023-12-24 00:45:33 +01:00
|
|
|
|
2020-06-04 01:25:59 +02:00
|
|
|
[2] = LAYOUT_ortho_3x3(
|
2023-12-24 00:45:33 +01:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS
|
|
|
|
),
|
|
|
|
|
|
|
|
|
|
|
|
/* LAYER 3
|
|
|
|
* ,-------|ENCODER|-------.
|
|
|
|
* | | | |
|
|
|
|
* |-------+-------+-------|
|
|
|
|
* | | | |
|
|
|
|
* |-------+-------+-------|
|
|
|
|
* | | | |
|
|
|
|
* `-----------------------'
|
|
|
|
*/
|
|
|
|
|
|
|
|
[3] = LAYOUT_ortho_3x3(
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS,
|
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS,
|
2020-06-04 01:25:59 +02:00
|
|
|
KC_TRNS, KC_TRNS, KC_TRNS
|
|
|
|
)
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2023-12-24 00:45:33 +01:00
|
|
|
/*Encoder Mapping*/
|
|
|
|
#if defined(ENCODER_MAP_ENABLE)
|
|
|
|
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = {
|
|
|
|
[0] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
|
|
|
|
[1] = { ENCODER_CCW_CW(RGB_HUD, RGB_HUI) },
|
|
|
|
[2] = { ENCODER_CCW_CW(KC_LEFT, KC_RGHT) },
|
|
|
|
[3] = { ENCODER_CCW_CW(RGB_SAD, RGB_SAI) },
|
|
|
|
};
|
|
|
|
#endif
|