mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-30 23:15:51 +00:00
8f6d2ac53c
Co-authored-by: Nick Brassel <nick@tzarc.org>
86 lines
2.1 KiB
C
86 lines
2.1 KiB
C
// Copyright 2023 The Mad Noodle(@the_mad_noodle)
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#include QMK_KEYBOARD_H
|
|
|
|
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|
|
|
/* LAYER 0
|
|
* ,-------|ENCODER|-------.
|
|
* | << | MUTE | >> |
|
|
* |-------+-------+-------|
|
|
* | STOP | PLAY | MEDIA |
|
|
* |-------+-------+-------|
|
|
* | CALC | MAIL | PC/FN |
|
|
* `-----------------------'
|
|
*/
|
|
|
|
[0] = LAYOUT_ortho_3x3(
|
|
KC_MPRV, LT(2, KC_MUTE), KC_MNXT,
|
|
KC_MSTP, KC_MPLY, KC_MSEL,
|
|
KC_CALC, KC_MAIL, LT(1, KC_MYCM)
|
|
),
|
|
|
|
|
|
/* LAYER 1
|
|
* ,-------|ENCODER|-------.
|
|
* | MODE+ |RGB TOG| MODE- |
|
|
* |-------+-------+-------|
|
|
* |Bright-| PLAIN |Bright+|
|
|
* |-------+-------+-------|
|
|
* | SWIRL |BREATH | |
|
|
* `-----------------------'
|
|
*/
|
|
|
|
[1] = LAYOUT_ortho_3x3(
|
|
UG_NEXT, UG_TOGG, UG_PREV,
|
|
UG_VALD, RGB_M_P, UG_VALU,
|
|
LT(3,RGB_M_SW), RGB_M_B, KC_TRNS
|
|
),
|
|
|
|
|
|
/* LAYER 2
|
|
* ,-------|ENCODER|-------.
|
|
* | | | |
|
|
* |-------+-------+-------|
|
|
* | | | |
|
|
* |-------+-------+-------|
|
|
* | | | |
|
|
* `-----------------------'
|
|
*/
|
|
|
|
[2] = LAYOUT_ortho_3x3(
|
|
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,
|
|
KC_TRNS, KC_TRNS, KC_TRNS
|
|
)
|
|
|
|
};
|
|
|
|
/*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(UG_HUED, UG_HUEU) },
|
|
[2] = { ENCODER_CCW_CW(KC_LEFT, KC_RGHT) },
|
|
[3] = { ENCODER_CCW_CW(UG_SATD, UG_SATU) },
|
|
};
|
|
#endif
|