qmk-keychron-q3-colemak-dh/keyboards/koolertron/amag09/keymaps/vial/keymap.c
Andrew Litt b291cd2586
Add Koolertron AMAG09 9 key macropad (#421)
* Add Koolertron AMAG09 9 key macropad

* Fix default keymap for koolertron/amag09

* Move as much as possible from C into info.json, fix layout name, and remove unnecessary LOCKING_ flags
2023-03-28 19:48:18 -06:00

50 lines
1.4 KiB
C

/* Copyright 2023
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
// Defines names for use in layer keycodes and the keymap
enum layer_names {
BASE,
FN1,
FN2,
FN3
};
// clang-format off
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[BASE] = LAYOUT(
KC_KP_7, KC_KP_8, KC_KP_9,
KC_KP_4, KC_KP_5, KC_KP_6,
MO(FN1), KC_KP_2, KC_KP_3
),
[FN1] = LAYOUT(
BL_TOGG, _______, _______,
_______, _______, _______,
_______, _______, _______
),
[FN2] = LAYOUT(
_______, _______, _______,
_______, _______, _______,
_______, _______, _______
),
[FN3] = LAYOUT(
_______, _______, _______,
_______, _______, _______,
_______, _______, _______
),
};
// clang-format on