summaryrefslogtreecommitdiffstats
path: root/keyboards/cannonkeys/meetuppad2023/keymaps/via/keymap.c
diff options
context:
space:
mode:
authorAndrew Kannan <andrew.kannan@klaviyo.com>2023-08-29 21:08:51 -0400
committerGitHub <noreply@github.com>2023-08-29 18:08:51 -0700
commitadef366e0c6e7203a428a610d13afa05099418ac (patch)
treeeddfccc6eb0c25624b5dffb068f318d6465d8233 /keyboards/cannonkeys/meetuppad2023/keymaps/via/keymap.c
parentc2a81d8fd4d1b90cb0f2af8d6b97b51ec1fb5806 (diff)
CannonKeys Meetup Pad 2023 (#21806)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/cannonkeys/meetuppad2023/keymaps/via/keymap.c')
-rw-r--r--keyboards/cannonkeys/meetuppad2023/keymaps/via/keymap.c35
1 files changed, 35 insertions, 0 deletions
diff --git a/keyboards/cannonkeys/meetuppad2023/keymaps/via/keymap.c b/keyboards/cannonkeys/meetuppad2023/keymaps/via/keymap.c
new file mode 100644
index 0000000000..8039eb260e
--- /dev/null
+++ b/keyboards/cannonkeys/meetuppad2023/keymaps/via/keymap.c
@@ -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;
+};