aboutsummaryrefslogtreecommitdiff
path: root/keyboards/shk9
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/shk9')
-rw-r--r--keyboards/shk9/config.h51
-rw-r--r--keyboards/shk9/info.json23
-rw-r--r--keyboards/shk9/keymaps/default/keymap.c24
-rw-r--r--keyboards/shk9/keymaps/via/keymap.c39
-rw-r--r--keyboards/shk9/keymaps/via/rules.mk2
-rw-r--r--keyboards/shk9/readme.md23
-rw-r--r--keyboards/shk9/rules.mk24
-rw-r--r--keyboards/shk9/shk9.c17
-rw-r--r--keyboards/shk9/shk9.h37
9 files changed, 240 insertions, 0 deletions
diff --git a/keyboards/shk9/config.h b/keyboards/shk9/config.h
new file mode 100644
index 000000000..a8ddd3f87
--- /dev/null
+++ b/keyboards/shk9/config.h
@@ -0,0 +1,51 @@
1/*
2Copyright 2020 Sam Hudson
3
4This program is free software: you can redistribute it and/or modify
5it under the terms of the GNU General Public License as published by
6the Free Software Foundation, either version 2 of the License, or
7(at your option) any later version.
8
9This program is distributed in the hope that it will be useful,
10but WITHOUT ANY WARRANTY; without even the implied warranty of
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12GNU General Public License for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
18#pragma once
19
20#include "config_common.h"
21
22/* USB Device descriptor parameter */
23#define VENDOR_ID 0x5348
24#define PRODUCT_ID 0x4B39
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Superhuman
27#define PRODUCT SHK9
28
29/* key matrix size */
30#define MATRIX_ROWS 3
31#define MATRIX_COLS 3
32
33/* Keyboard Matrix Assignments */
34#define MATRIX_ROW_PINS { B0, B1, B2 }
35#define MATRIX_COL_PINS { B3, B4, B5 }
36#define UNUSED_PINS
37
38/* COL2ROW, ROW2COL */
39#define DIODE_DIRECTION COL2ROW
40
41/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
42#define DEBOUNCE 5
43
44/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
45#define LOCKING_SUPPORT_ENABLE
46/* Locking resynchronize hack */
47#define LOCKING_RESYNC_ENABLE
48
49/* disable these deprecated features by default */
50#define NO_ACTION_MACRO
51#define NO_ACTION_FUNCTION \ No newline at end of file
diff --git a/keyboards/shk9/info.json b/keyboards/shk9/info.json
new file mode 100644
index 000000000..c3122bd1e
--- /dev/null
+++ b/keyboards/shk9/info.json
@@ -0,0 +1,23 @@
1{
2 "keyboard_name": "SHK9",
3 "url": "http://superhuman.website",
4 "maintainer": "Sam Hudson",
5 "width": 3,
6 "height": 3,
7 "lighting": "none",
8 "layouts": {
9 "LAYOUT_ortho_3x3": {
10 "layout": [
11 {"label":"7", "x":0, "y":0},
12 {"label":"8", "x":1, "y":0},
13 {"label":"9", "x":2, "y":0},
14 {"label":"4", "x":0, "y":1},
15 {"label":"5", "x":1, "y":1},
16 {"label":"6", "x":2, "y":1},
17 {"label":"1", "x":0, "y":2},
18 {"label":"2", "x":1, "y":2},
19 {"label":"3", "x":2, "y":2}
20 ]
21 }
22 }
23}
diff --git a/keyboards/shk9/keymaps/default/keymap.c b/keyboards/shk9/keymaps/default/keymap.c
new file mode 100644
index 000000000..cdff8a74b
--- /dev/null
+++ b/keyboards/shk9/keymaps/default/keymap.c
@@ -0,0 +1,24 @@
1/* Copyright 2020 Sam Hudson
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT_ortho_3x3( /* Base */
20 KC_1, KC_2, KC_3,
21 KC_4, KC_5, KC_6,
22 KC_7, KC_8, KC_9
23 )
24}; \ No newline at end of file
diff --git a/keyboards/shk9/keymaps/via/keymap.c b/keyboards/shk9/keymaps/via/keymap.c
new file mode 100644
index 000000000..ff780b3cf
--- /dev/null
+++ b/keyboards/shk9/keymaps/via/keymap.c
@@ -0,0 +1,39 @@
1/* Copyright 2020 Sam Hudson
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16#include QMK_KEYBOARD_H
17
18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
19 [0] = LAYOUT_ortho_3x3( /* Base */
20 KC_1, KC_2, KC_3,
21 KC_4, KC_5, KC_6,
22 KC_7, KC_8, KC_9
23 ),
24 [1] = LAYOUT_ortho_3x3(
25 _______, _______, _______,
26 _______, _______, _______,
27 _______, _______, _______
28 ),
29 [2] = LAYOUT_ortho_3x3(
30 _______, _______, _______,
31 _______, _______, _______,
32 _______, _______, _______
33 ),
34 [3] = LAYOUT_ortho_3x3(
35 _______, _______, _______,
36 _______, _______, _______,
37 _______, _______, _______
38 ),
39}; \ No newline at end of file
diff --git a/keyboards/shk9/keymaps/via/rules.mk b/keyboards/shk9/keymaps/via/rules.mk
new file mode 100644
index 000000000..43061db1d
--- /dev/null
+++ b/keyboards/shk9/keymaps/via/rules.mk
@@ -0,0 +1,2 @@
1VIA_ENABLE = yes
2LTO_ENABLE = yes \ No newline at end of file
diff --git a/keyboards/shk9/readme.md b/keyboards/shk9/readme.md
new file mode 100644
index 000000000..1fab42a1a
--- /dev/null
+++ b/keyboards/shk9/readme.md
@@ -0,0 +1,23 @@
1# shk9
2
3![shk9](https://i.imgur.com/FluRgiHl.jpg)
4
5The SHK9 is a tiny 3x3 macropad! Fully configurable with via.
6
7* Keyboard Maintainer: [Sam Hudson](https://github.com/samsamm777)
8* Hardware Supported: SHK9 PCB (ATmega32u4)
9* Hardware Availability: http://superhuman.website
10
11Make example for this keyboard (after setting up your build environment):
12
13 make shk9:default
14
15Flashing example for this keyboard:
16
17 make shk9:default:flash
18
19## Bootloader Mode
20
21To reset the board into bootloader mode, remove the pcb from the case buy removing keycaps, and unscrewing the 3 screws. Then (while plugged in) press the switch on the underside of the PCB for a few seconds. The board is now in bootloader mode.
22
23See 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). \ No newline at end of file
diff --git a/keyboards/shk9/rules.mk b/keyboards/shk9/rules.mk
new file mode 100644
index 000000000..8d356cbd1
--- /dev/null
+++ b/keyboards/shk9/rules.mk
@@ -0,0 +1,24 @@
1# MCU name
2MCU = atmega32u4
3
4# Bootloader selection
5BOOTLOADER = atmel-dfu
6
7# Build Options
8# change yes to no to disable
9#
10BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration
11MOUSEKEY_ENABLE = yes # Mouse keys
12EXTRAKEY_ENABLE = yes # Audio control and System control
13CONSOLE_ENABLE = no # Console for debug
14COMMAND_ENABLE = yes # Commands for debug and configuration
15# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
16SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
17# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
18NKRO_ENABLE = yes # USB Nkey Rollover
19BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
20RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
21BLUETOOTH_ENABLE = no # Enable Bluetooth
22AUDIO_ENABLE = no # Audio output
23
24LAYOUTS = ortho_3x3 \ No newline at end of file
diff --git a/keyboards/shk9/shk9.c b/keyboards/shk9/shk9.c
new file mode 100644
index 000000000..7608dcd42
--- /dev/null
+++ b/keyboards/shk9/shk9.c
@@ -0,0 +1,17 @@
1/* Copyright 2020 Sam Hudson
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#include "shk9.h"
diff --git a/keyboards/shk9/shk9.h b/keyboards/shk9/shk9.h
new file mode 100644
index 000000000..d2c63a49c
--- /dev/null
+++ b/keyboards/shk9/shk9.h
@@ -0,0 +1,37 @@
1/* Copyright 2020 Sam Hudson
2 *
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of the GNU General Public License as published by
5 * the Free Software Foundation, either version 2 of the License, or
6 * (at your option) any later version.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */
16
17#pragma once
18
19#include "quantum.h"
20
21/* This is a shortcut to help you visually see your layout.
22 *
23 * The first section contains all of the arguments representing the physical
24 * layout of the board and position of the keys.
25 *
26 * The second converts the arguments into a two-dimensional array which
27 * represents the switch matrix.
28 */
29#define LAYOUT_ortho_3x3( \
30 K00, K01, K02, \
31 K10, K11, K12, \
32 K20, K21, K22 \
33) { \
34 { K00, K01, K02 }, \
35 { K10, K11, K12 }, \
36 { K20, K21, K22 } \
37}