Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CannonKeys Meetup Pad 2023 #21806

Merged
merged 4 commits into from
Aug 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions keyboards/cannonkeys/meetuppad2023/info.json
Original file line number Diff line number Diff line change
@@ -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}
]
}
}
}
20 changes: 20 additions & 0 deletions keyboards/cannonkeys/meetuppad2023/keymaps/default/keymap.c
Original file line number Diff line number Diff line change
@@ -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
)
};
35 changes: 35 additions & 0 deletions keyboards/cannonkeys/meetuppad2023/keymaps/via/keymap.c
Original file line number Diff line number Diff line change
@@ -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;
};
1 change: 1 addition & 0 deletions keyboards/cannonkeys/meetuppad2023/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VIA_ENABLE = yes
18 changes: 18 additions & 0 deletions keyboards/cannonkeys/meetuppad2023/readme.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 2 additions & 0 deletions keyboards/cannonkeys/meetuppad2023/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Wildcard to allow APM32 MCU
DFU_SUFFIX_ARGS = -v FFFF -p FFFF