aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--keyboards/handwired/leftynumpad/config.h102
-rw-r--r--keyboards/handwired/leftynumpad/info.json36
-rw-r--r--keyboards/handwired/leftynumpad/keymaps/default/keymap.c92
-rw-r--r--keyboards/handwired/leftynumpad/keymaps/default/readme.md21
-rw-r--r--keyboards/handwired/leftynumpad/leftynumpad.c17
-rw-r--r--keyboards/handwired/leftynumpad/leftynumpad.h42
-rw-r--r--keyboards/handwired/leftynumpad/readme.md16
-rw-r--r--keyboards/handwired/leftynumpad/rules.mk22
8 files changed, 348 insertions, 0 deletions
diff --git a/keyboards/handwired/leftynumpad/config.h b/keyboards/handwired/leftynumpad/config.h
new file mode 100644
index 000000000..9059bfe76
--- /dev/null
+++ b/keyboards/handwired/leftynumpad/config.h
@@ -0,0 +1,102 @@
1/*
2Copyright 2020 Tom Swartz
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 0xFEED
24#define PRODUCT_ID 0xBEEF
25#define DEVICE_VER 0x0001
26#define MANUFACTURER Tom Swartz
27#define PRODUCT LeftyNumpad
28/* key matrix size */
29#define MATRIX_ROWS 5
30#define MATRIX_COLS 5
31
32/*
33 * Keyboard Matrix Assignments
34 *
35 * Change this to how you wired your keyboard
36 * COLS: AVR pins used for columns, left to right
37 * ROWS: AVR pins used for rows, top to bottom
38 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
39 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
40 *
41 */
42#define MATRIX_ROW_PINS { D1, D0, D4, C6, D7 }
43#define MATRIX_COL_PINS { E6, B4, B5, B6, B2 }
44#define UNUSED_PINS {D3, D2, B0, D5, B3, B1, F7, F6, F5, F4 }
45
46/* COL2ROW, ROW2COL*/
47#define DIODE_DIRECTION COL2ROW
48/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
49#define DEBOUNCE 10
50
51/* define if matrix has ghost (lacks anti-ghosting diodes) */
52//#define MATRIX_HAS_GHOST
53
54/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
55#define LOCKING_SUPPORT_ENABLE
56/* Locking resynchronize hack */
57#define LOCKING_RESYNC_ENABLE
58
59/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
60 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
61 */
62// #define GRAVE_ESC_CTRL_OVERRIDE
63
64/*
65 * Force NKRO
66 *
67 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
68 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
69 * makefile for this to work.)
70 *
71 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
72 * until the next keyboard reset.
73 *
74 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
75 * fully operational during normal computer usage.
76 *
77 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
78 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
79 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
80 * power-up.
81 *
82 */
83//#define FORCE_NKRO
84/*
85 * Feature disable options
86 * These options are also useful to firmware size reduction.
87 */
88
89/* disable debug print */
90//#define NO_DEBUG
91
92/* disable print */
93//#define NO_PRINT
94
95/* disable action features */
96//#define NO_ACTION_LAYER
97//#define NO_ACTION_TAPPING
98//#define NO_ACTION_ONESHOT
99
100/* disable these deprecated features by default */
101#define NO_ACTION_MACRO
102#define NO_ACTION_FUNCTION
diff --git a/keyboards/handwired/leftynumpad/info.json b/keyboards/handwired/leftynumpad/info.json
new file mode 100644
index 000000000..9dab76430
--- /dev/null
+++ b/keyboards/handwired/leftynumpad/info.json
@@ -0,0 +1,36 @@
1{
2 "keyboard_name": "LeftyNumpad",
3 "url": "https://github.com/tomswartz07",
4 "maintainer": "Tom Swartz",
5 "width": 5,
6 "height": 5,
7 "layouts": {
8 "LAYOUT": {
9 "layout": [
10 {"label":"0,0", "x":0, "y":0},
11 {"label":"1,0", "x":1, "y":0},
12 {"label":"2,0", "x":2, "y":0},
13 {"label":"3,0", "x":3, "y":0},
14 {"label":"4,0", "x":4, "y":0},
15 {"label":"0,1", "x":0, "y":1},
16 {"label":"1,1", "x":1, "y":1},
17 {"label":"2,1", "x":2, "y":1},
18 {"label":"3,1", "x":3, "y":1},
19 {"label":"0,2", "x":0, "y":2},
20 {"label":"1,2", "x":1, "y":2},
21 {"label":"2,2", "x":2, "y":2},
22 {"label":"3,2", "x":3, "y":2},
23 {"label":"5,1", "x":4, "y":1, "h":2},
24 {"label":"0,3", "x":0, "y":3},
25 {"label":"1,3", "x":1, "y":3},
26 {"label":"2,3", "x":2, "y":3},
27 {"label":"3,3", "x":3, "y":3},
28 {"label":"0,4", "x":0, "y":4},
29 {"label":"1,4", "x":1, "y":4},
30 {"label":"2,4", "x":2, "y":4},
31 {"label":"3,4", "x":3, "y":4},
32 {"label":"4,3", "x":4, "y":3, "h":2}
33 ]
34 }
35 }
36}
diff --git a/keyboards/handwired/leftynumpad/keymaps/default/keymap.c b/keyboards/handwired/leftynumpad/keymaps/default/keymap.c
new file mode 100644
index 000000000..d75e42211
--- /dev/null
+++ b/keyboards/handwired/leftynumpad/keymaps/default/keymap.c
@@ -0,0 +1,92 @@
1/* Copyright 2020 Tom Swartz
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
18// Defines names for use in layer keycodes and the keymap
19enum layer_names {
20 _NP,
21 _FN
22};
23
24// Defines the keycodes used by our macros in process_record_user
25enum custom_keycodes {
26 KC_00 = SAFE_RANGE,
27};
28
29const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
30/* NumberPad Layer
31 ,---------------------------------------.
32 | Back | Num | / | * | - |
33 | Space | Lock | | | |
34 |-------+-------+-------+-------+-------|
35 | Tab | 7 | 8 | 9 | + |
36 | | Home | Up | PgUp | |
37 |-------+-------+-------+-------| |
38 | Layer | 4 | 5 | 6 | |
39 | Toggle| Left | | Right | |
40 |-------+-------+-------+-------+-------|
41 | Page | 1 | 2 | 3 | Enter |
42 | Up | End | Down | PgDn | |
43 |-------+-------+-------+-------| |
44 | Page | 00 | 0 | . | |
45 | Down | | | | |
46 `---------------------------------------'
47*/
48 [_NP] = LAYOUT(
49 KC_BSPC, KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
50 KC_TAB, KC_7, KC_8, KC_9,
51 TG(_NP), KC_4, KC_5, KC_6, KC_PPLS,
52 KC_PGUP, KC_1, KC_2, KC_3,
53 KC_PGDOWN, KC_00, KC_0, KC_PDOT, KC_PENT
54 ),
55/* Macropad/Function Layer
56 ,---------------------------------------.
57 | `~ | Play | F13 | Prev | Next |
58 | | Pause | | | |
59 |-------+-------+-------+-------+-------|
60 | Tab | F14 | F15 | 9 | + |
61 | | | | PgUp | |
62 |-------+-------+-------+-------| |
63 | Layer | 4 | 5 | 6 | |
64 | Toggle| Left | | Right | |
65 |-------+-------+-------+-------+-------|
66 | U | B | 2 | 3 | Enter |
67 | | | Down | PgDn | |
68 |-------+-------+-------+-------| |
69 | D | F | 0 | . | |
70 | | | | | |
71 `---------------------------------------'
72*/
73 [_FN] = LAYOUT(
74 KC_GRV, KC_MPLY, KC_F13, KC_MPRV, KC_MNXT,
75 _______, KC_F14, KC_F15, _______,
76 _______, _______, _______, _______, _______,
77 KC_U, KC_B, _______, _______,
78 KC_D, KC_F, _______, _______, _______
79 ),
80};
81
82bool process_record_user(uint16_t keycode, keyrecord_t *record) {
83 switch (keycode) {
84 case KC_00:
85 if (record->event.pressed) {
86 // when keycode DOUBLEZERO is pressed
87 SEND_STRING("00");
88 }
89 break;
90 }
91 return true;
92}
diff --git a/keyboards/handwired/leftynumpad/keymaps/default/readme.md b/keyboards/handwired/leftynumpad/keymaps/default/readme.md
new file mode 100644
index 000000000..107395ebb
--- /dev/null
+++ b/keyboards/handwired/leftynumpad/keymaps/default/readme.md
@@ -0,0 +1,21 @@
1# The default keymap for LeftyNumpad
2
3## Base Layer
4```
5 ,---------------------------------------.
6 | Back | Num | / | * | - |
7 | Space | Lock | | | |
8 |-------+-------+-------+-------+-------|
9 | Layer | 7 | 8 | 9 | + |
10 | Up | Home | Up | PgUp | |
11 |-------+-------+-------+-------| |
12 | Layer | 4 | 5 | 6 | |
13 | Down | Left | | Right | |
14 |-------+-------+-------+-------+-------|
15 | Page | 1 | 2 | 3 | Enter |
16 | Up | End | Down | PgDn | |
17 |-------+-------+-------+-------| |
18 | Page | 00 | 0 | . | |
19 | Down | | | | |
20 `---------------------------------------'
21```
diff --git a/keyboards/handwired/leftynumpad/leftynumpad.c b/keyboards/handwired/leftynumpad/leftynumpad.c
new file mode 100644
index 000000000..195ec7828
--- /dev/null
+++ b/keyboards/handwired/leftynumpad/leftynumpad.c
@@ -0,0 +1,17 @@
1/* Copyright 2020 Tom Swartz
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 "leftynumpad.h"
diff --git a/keyboards/handwired/leftynumpad/leftynumpad.h b/keyboards/handwired/leftynumpad/leftynumpad.h
new file mode 100644
index 000000000..7f3ebb844
--- /dev/null
+++ b/keyboards/handwired/leftynumpad/leftynumpad.h
@@ -0,0 +1,42 @@
1/* Copyright 2020 Tom Swartz
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( \
30 K05, K15, K25, K35, K45, \
31 K04, K14, K24, K34, \
32 K03, K13, K23, K33, K43, \
33 K02, K12, K22, K32, \
34 K01, K11, K21, K31, K41 \
35) \
36{ \
37 { K05, K15, K25, K35, K45 }, \
38 { K04, K14, K24, K34 }, \
39 { K03, K13, K23, K33, K43 }, \
40 { K02, K12, K22, K32 }, \
41 { K01, K11, K21, K31, K41 } \
42}
diff --git a/keyboards/handwired/leftynumpad/readme.md b/keyboards/handwired/leftynumpad/readme.md
new file mode 100644
index 000000000..4446bf296
--- /dev/null
+++ b/keyboards/handwired/leftynumpad/readme.md
@@ -0,0 +1,16 @@
1# LeftyNumpad
2
3![Image of LeftyNumpad](https://i.imgur.com/kkSPIxpl.png)
4
5A small numberpad/macropad intended to be placed southpaw-style on the left
6side of a keyboard.
7
8* Keyboard Maintainer: [Tom Swartz](https://github.com/tomswartz07)
9* Hardware Supported: Handwired, Uses Arudino Micro.
10* Hardware Availability: Handwired hardware.
11
12Make example for this keyboard (after setting up your build environment):
13
14 make handwired/leftynumpad:default
15
16See 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).
diff --git a/keyboards/handwired/leftynumpad/rules.mk b/keyboards/handwired/leftynumpad/rules.mk
new file mode 100644
index 000000000..5c0d8f307
--- /dev/null
+++ b/keyboards/handwired/leftynumpad/rules.mk
@@ -0,0 +1,22 @@
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 = no # 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 = no # 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