summaryrefslogtreecommitdiff
path: root/keyboards/cannonkeys
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
parentc2a81d8fd4d1b90cb0f2af8d6b97b51ec1fb5806 (diff)
CannonKeys Meetup Pad 2023 (#21806)
Co-authored-by: Ryan <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/cannonkeys')
-rw-r--r--keyboards/cannonkeys/meetuppad2023/info.json40
-rw-r--r--keyboards/cannonkeys/meetuppad2023/keymaps/default/keymap.c20
-rw-r--r--keyboards/cannonkeys/meetuppad2023/keymaps/via/keymap.c35
-rw-r--r--keyboards/cannonkeys/meetuppad2023/keymaps/via/rules.mk1
-rw-r--r--keyboards/cannonkeys/meetuppad2023/readme.md18
-rw-r--r--keyboards/cannonkeys/meetuppad2023/rules.mk2
6 files changed, 116 insertions, 0 deletions
diff --git a/keyboards/cannonkeys/meetuppad2023/info.json b/keyboards/cannonkeys/meetuppad2023/info.json
new file mode 100644
index 0000000000..e55d4361d8
--- /dev/null
+++ b/keyboards/cannonkeys/meetuppad2023/info.json
@@ -0,0 +1,40 @@
+{
+ "manufacturer": "CannonKeys",
+ "keyboard_name": "Meetup Pad 2023",
+ "maintainer": "awkannan",
+ "bootloader": "stm32-dfu",
+ "diode_direction": "COL2ROW",
+ "features": {
+ "bootmagic": true,
+ "command": false,
+ "console": false,
+ "extrakey": true,
+ "mousekey": true,
+ "nkro": true
+ },
+ "matrix_pins": {
+ "cols": ["B11", "B10", "B2", "B0"],
+ "rows": ["B1", "A7"]
+ },
+ "processor": "STM32F072",
+ "url": "https://cannonkeys.com",
+ "usb": {
+ "device_version": "0.0.1",
+ "pid": "0x2023",
+ "vid": "0xCA04"
+ },
+ "layouts": {
+ "LAYOUT": {
+ "layout": [
+ {"matrix": [1, 0], "x": 0, "y": 0},
+ {"matrix": [0, 0], "x": 1, "y": 0},
+ {"matrix": [1, 1], "x": 0, "y": 1},
+ {"matrix": [0, 1], "x": 1, "y": 1},
+ {"matrix": [1, 2], "x": 0, "y": 2},
+ {"matrix": [0, 2], "x": 1, "y": 2},
+ {"matrix": [1, 3], "x": 0, "y": 3},
+ {"matrix": [0, 3], "x": 1, "y": 3}
+ ]
+ }
+ }
+}
diff --git a/keyboards/cannonkeys/meetuppad2023/keymaps/default/keymap.c b/keyboards/cannonkeys/meetuppad2023/keymaps/default/keymap.c
new file mode 100644
index 0000000000..790839f831
--- /dev/null
+++ b/keyboards/cannonkeys/meetuppad2023/keymaps/default/keymap.c
@@ -0,0 +1,20 @@
+// Copyright 2023 Andrew Kannan
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#include QMK_KEYBOARD_H
+
+const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
+ [0] = LAYOUT(
+ KC_1, KC_2,
+ KC_3, KC_4,
+ KC_5, KC_6,
+ KC_7, MO(1)
+ ),
+
+ [1] = LAYOUT(
+ QK_BOOT, KC_8,
+ KC_9, KC_TRNS,
+ KC_TRNS, KC_TRNS,
+ KC_TRNS, KC_TRNS
+ )
+};
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;
+};
diff --git a/keyboards/cannonkeys/meetuppad2023/keymaps/via/rules.mk b/keyboards/cannonkeys/meetuppad2023/keymaps/via/rules.mk
new file mode 100644
index 0000000000..1e5b99807c
--- /dev/null
+++ b/keyboards/cannonkeys/meetuppad2023/keymaps/via/rules.mk
@@ -0,0 +1 @@
+VIA_ENABLE = yes
diff --git a/keyboards/cannonkeys/meetuppad2023/readme.md b/keyboards/cannonkeys/meetuppad2023/readme.md
new file mode 100644
index 0000000000..73312c1b69
--- /dev/null
+++ b/keyboards/cannonkeys/meetuppad2023/readme.md
@@ -0,0 +1,18 @@
+# CannonKeys Meetup Pad 2023
+
+* Keyboard Maintainer: [Andrew Kannan](https://github.com/awkannan)
+* Hardware Supported: STM32F072CBT6
+
+Make example for this keyboard (after setting up your build environment):
+
+ make cannonkeys/meetuppad2023:default
+
+See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
+
+## Bootloader
+
+Enter the bootloader in 3 ways:
+
+* **Bootmagic reset**: Hold down the key at (0,0) in the matrix (top right on this board) and plug in the keyboard
+* **Physical reset button**: Swap the boot switch on the back of the PCB to "1" and hit the reset button
+* **Keycode in layout**: Press the key mapped to `QK_BOOT` if it is available
diff --git a/keyboards/cannonkeys/meetuppad2023/rules.mk b/keyboards/cannonkeys/meetuppad2023/rules.mk
new file mode 100644
index 0000000000..0ab54aaaf7
--- /dev/null
+++ b/keyboards/cannonkeys/meetuppad2023/rules.mk
@@ -0,0 +1,2 @@
+# Wildcard to allow APM32 MCU
+DFU_SUFFIX_ARGS = -v FFFF -p FFFF