summaryrefslogtreecommitdiff
path: root/keyboards/lpad/keymaps/via/keymap.c
blob: fc5f1f0b03765e1e0d8565deca5c5016317b8eeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright 2023 Laneware Peripherals
// SPDX-License-Identifier: GPL-2.0-or-later

#include QMK_KEYBOARD_H

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {

	[0] = LAYOUT (
		KC_MPLY, KC_MUTE,  
		KC_MNXT,  
		KC_MPRV,  KC_LEFT,    KC_RIGHT),    

	[1] = LAYOUT (
		KC_TRNS, KC_TRNS, 
		KC_TRNS,
		KC_TRNS, KC_TRNS, KC_TRNS),

	[2] = LAYOUT (
		KC_TRNS, KC_TRNS, 
		KC_TRNS,
		KC_TRNS, KC_TRNS, KC_TRNS),

	[3] = LAYOUT (
		KC_TRNS, KC_TRNS, 
		KC_TRNS,
		KC_TRNS, KC_TRNS, KC_TRNS),
};

#if defined(ENCODER_MAP_ENABLE)
const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
    [0] = {ENCODER_CCW_CW(KC_VOLD, KC_VOLU)},
    [1] = {ENCODER_CCW_CW(KC_TRNS, KC_TRNS)},
    [2] = {ENCODER_CCW_CW(KC_TRNS, KC_TRNS)},
    [3] = {ENCODER_CCW_CW(KC_TRNS, KC_TRNS)},
};
#endif