CannonKeys Meetup Pad 2023 (#21806)

Co-authored-by: Ryan <fauxpark@gmail.com>
This commit is contained in:
Andrew Kannan 2023-08-29 21:08:51 -04:00 committed by GitHub
parent 5e1689be18
commit d2e8a4f2b6
2 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,35 @@
// Copyright 2023 Andrew Kannan
// SPDX-License-Identifier: GPL-2.0-or-later
#include QMK_KEYBOARD_H
enum custom_keycodes {
MYMACRO = QK_KB_0,
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
MYMACRO, KC_1,
KC_2, KC_3,
KC_4, KC_5,
KC_6, MO(1)
),
[1] = LAYOUT(
QK_BOOT, KC_7,
KC_8, KC_9,
KC_TRNS, KC_TRNS,
KC_TRNS, KC_TRNS
)
};
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
switch (keycode) {
case MYMACRO:
if (record->event.pressed) {
SEND_STRING("I went to the CannonKeys 2023 meetup and all I got was this macropad");
}
break;
}
return true;
};

View file

@ -0,0 +1 @@
VIA_ENABLE = yes