aboutsummaryrefslogtreecommitdiff
path: root/keyboards/allison_numpad
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/allison_numpad')
-rw-r--r--keyboards/allison_numpad/allison_numpad.c17
-rw-r--r--keyboards/allison_numpad/allison_numpad.h61
-rw-r--r--keyboards/allison_numpad/config.h146
-rw-r--r--keyboards/allison_numpad/info.json70
-rw-r--r--keyboards/allison_numpad/keymaps/default/keymap.c50
-rw-r--r--keyboards/allison_numpad/keymaps/default/readme.md5
-rw-r--r--keyboards/allison_numpad/keymaps/via/keymap.c50
-rw-r--r--keyboards/allison_numpad/keymaps/via/readme.md1
-rw-r--r--keyboards/allison_numpad/keymaps/via/rules.mk1
-rw-r--r--keyboards/allison_numpad/readme.md15
-rw-r--r--keyboards/allison_numpad/rules.mk20
11 files changed, 436 insertions, 0 deletions
diff --git a/keyboards/allison_numpad/allison_numpad.c b/keyboards/allison_numpad/allison_numpad.c
new file mode 100644
index 000000000..16f36e314
--- /dev/null
+++ b/keyboards/allison_numpad/allison_numpad.c
@@ -0,0 +1,17 @@
1/* Copyright 2020 Yiancar
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 "allison_numpad.h"
diff --git a/keyboards/allison_numpad/allison_numpad.h b/keyboards/allison_numpad/allison_numpad.h
new file mode 100644
index 000000000..9295e6866
--- /dev/null
+++ b/keyboards/allison_numpad/allison_numpad.h
@@ -0,0 +1,61 @@
1/* Copyright 2020 Yiancar
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_6x4( \
30 K00, K01, K02, K03, \
31 K10, K11, K12, K13, \
32 K20, K21, K22, K23, \
33 K30, K31, K32, K33, \
34 K40, K41, K42, K43, \
35 K50, K51, K52, K53 \
36) \
37{ \
38 { K00, K01, K02, K03 }, \
39 { K10, K11, K12, K13 }, \
40 { K20, K21, K22, K23 }, \
41 { K30, K31, K32, K33 }, \
42 { K40, K41, K42, K43 }, \
43 { K50, K51, K52, K53 } \
44}
45
46#define LAYOUT_numpad_6x4( \
47 K00, K01, K02, K03, \
48 K10, K11, K12, K13, \
49 K20, K21, K22, \
50 K30, K31, K32, K33, \
51 K40, K41, K42, \
52 K50, K52, K53 \
53) \
54{ \
55 { K00, K01, K02, K03 }, \
56 { K10, K11, K12, K13 }, \
57 { K20, K21, K22, KC_NO }, \
58 { K30, K31, K32, K33 }, \
59 { K40, K41, K42, KC_NO }, \
60 { K50, KC_NO, K52, K53 } \
61}
diff --git a/keyboards/allison_numpad/config.h b/keyboards/allison_numpad/config.h
new file mode 100644
index 000000000..581926c24
--- /dev/null
+++ b/keyboards/allison_numpad/config.h
@@ -0,0 +1,146 @@
1/*
2Copyright 2020 Yiancar
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 0x8968
24#define PRODUCT_ID 0x414E
25#define DEVICE_VER 0x0001
26#define MANUFACTURER protoTypist
27#define PRODUCT Allison Numpad
28
29/* key matrix size */
30#define MATRIX_ROWS 6
31#define MATRIX_COLS 4
32
33/*
34 * Keyboard Matrix Assignments
35 *
36 * Change this to how you wired your keyboard
37 * COLS: AVR pins used for columns, left to right
38 * ROWS: AVR pins used for rows, top to bottom
39 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
40 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
41 *
42 */
43#define MATRIX_ROW_PINS { F4, C7, C6, B6, B5, B4 }
44#define MATRIX_COL_PINS { F6, F5, F1, F0 }
45#define UNUSED_PINS
46
47/* COL2ROW, ROW2COL*/
48#define DIODE_DIRECTION COL2ROW
49
50/*
51 * Split Keyboard specific options, make sure you have 'SPLIT_KEYBOARD = yes' in your rules.mk, and define SOFT_SERIAL_PIN.
52 */
53// #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
54
55#define BACKLIGHT_PIN B7
56#define BACKLIGHT_BREATHING
57#define BACKLIGHT_LEVELS 4
58
59// #define RGB_DI_PIN E2
60// #ifdef RGB_DI_PIN
61// #define RGBLED_NUM 16
62// #define RGBLIGHT_HUE_STEP 8
63// #define RGBLIGHT_SAT_STEP 8
64// #define RGBLIGHT_VAL_STEP 8
65// #define RGBLIGHT_LIMIT_VAL 255 /* The maximum brightness level */
66// #define RGBLIGHT_SLEEP /* If defined, the RGB lighting will be switched off when the host goes to sleep */
67// /*== all animations enable ==*/
68// #define RGBLIGHT_ANIMATIONS
69// /*== or choose animations ==*/
70// #define RGBLIGHT_EFFECT_BREATHING
71// #define RGBLIGHT_EFFECT_RAINBOW_MOOD
72// #define RGBLIGHT_EFFECT_RAINBOW_SWIRL
73// #define RGBLIGHT_EFFECT_SNAKE
74// #define RGBLIGHT_EFFECT_KNIGHT
75// #define RGBLIGHT_EFFECT_CHRISTMAS
76// #define RGBLIGHT_EFFECT_STATIC_GRADIENT
77// #define RGBLIGHT_EFFECT_RGB_TEST
78// #define RGBLIGHT_EFFECT_ALTERNATING
79// /*== customize breathing effect ==*/
80// /*==== (DEFAULT) use fixed table instead of exp() and sin() ====*/
81// #define RGBLIGHT_BREATHE_TABLE_SIZE 256 // 256(default) or 128 or 64
82// /*==== use exp() and sin() ====*/
83// #define RGBLIGHT_EFFECT_BREATHE_CENTER 1.85 // 1 to 2.7
84// #define RGBLIGHT_EFFECT_BREATHE_MAX 255 // 0 to 255
85// #endif
86
87/* Debounce reduces chatter (unintended double-presses) - set 0 if debouncing is not needed */
88#define DEBOUNCE 5
89
90/* define if matrix has ghost (lacks anti-ghosting diodes) */
91//#define MATRIX_HAS_GHOST
92
93/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
94#define LOCKING_SUPPORT_ENABLE
95/* Locking resynchronize hack */
96#define LOCKING_RESYNC_ENABLE
97
98/* If defined, GRAVE_ESC will always act as ESC when CTRL is held.
99 * This is userful for the Windows task manager shortcut (ctrl+shift+esc).
100 */
101// #define GRAVE_ESC_CTRL_OVERRIDE
102
103/*
104 * Force NKRO
105 *
106 * Force NKRO (nKey Rollover) to be enabled by default, regardless of the saved
107 * state in the bootmagic EEPROM settings. (Note that NKRO must be enabled in the
108 * makefile for this to work.)
109 *
110 * If forced on, NKRO can be disabled via magic key (default = LShift+RShift+N)
111 * until the next keyboard reset.
112 *
113 * NKRO may prevent your keystrokes from being detected in the BIOS, but it is
114 * fully operational during normal computer usage.
115 *
116 * For a less heavy-handed approach, enable NKRO via magic key (LShift+RShift+N)
117 * or via bootmagic (hold SPACE+N while plugging in the keyboard). Once set by
118 * bootmagic, NKRO mode will always be enabled until it is toggled again during a
119 * power-up.
120 *
121 */
122//#define FORCE_NKRO
123
124/*
125 * Feature disable options
126 * These options are also useful to firmware size reduction.
127 */
128
129/* disable debug print */
130//#define NO_DEBUG
131
132/* disable print */
133//#define NO_PRINT
134
135/* disable action features */
136//#define NO_ACTION_LAYER
137//#define NO_ACTION_TAPPING
138//#define NO_ACTION_ONESHOT
139
140/* disable these deprecated features by default */
141#define NO_ACTION_MACRO
142#define NO_ACTION_FUNCTION
143
144/* Bootmagic Lite key configuration */
145#define BOOTMAGIC_LITE_ROW 0
146#define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/allison_numpad/info.json b/keyboards/allison_numpad/info.json
new file mode 100644
index 000000000..e644d8ec3
--- /dev/null
+++ b/keyboards/allison_numpad/info.json
@@ -0,0 +1,70 @@
1{
2 "keyboard_name": "allison_numpad",
3 "url": "www.yiancar-designs.com",
4 "maintainer": "Yiancar",
5 "layouts": {
6 "LAYOUT_ortho_6x4": {
7 "layout": [
8 {"label":"0,0", "x":0, "y":0},
9 {"label":"0,1", "x":1, "y":0},
10 {"label":"0,2", "x":2, "y":0},
11 {"label":"0,3", "x":3, "y":0},
12
13 {"label":"1,0", "x":0, "y":1.25},
14 {"label":"1,1", "x":1, "y":1.25},
15 {"label":"1,2", "x":2, "y":1.25},
16 {"label":"1,3", "x":3, "y":1.25},
17
18 {"label":"2,0", "x":0, "y":2.25},
19 {"label":"2,1", "x":1, "y":2.25},
20 {"label":"2,2", "x":2, "y":2.25},
21 {"label":"2,3", "x":3, "y":2.25},
22
23 {"label":"3,0", "x":0, "y":3.25},
24 {"label":"3,1", "x":1, "y":3.25},
25 {"label":"3,2", "x":2, "y":3.25},
26 {"label":"3,3", "x":3, "y":3.25},
27
28 {"label":"4,0", "x":0, "y":4.25},
29 {"label":"4,1", "x":1, "y":4.25},
30 {"label":"4,2", "x":2, "y":4.25},
31 {"label":"4,3", "x":3, "y":4.25},
32
33 {"label":"5,0", "x":0, "y":5.25},
34 {"label":"5,1", "x":1, "y":5.25},
35 {"label":"5,2", "x":2, "y":5.25},
36 {"label":"5,3", "x":3, "y":5.25}
37 ]
38 },
39 "LAYOUT_numpad_6x4": {
40 "layout": [
41 {"label":"0,0", "x":0, "y":0},
42 {"label":"0,1", "x":1, "y":0},
43 {"label":"0,2", "x":2, "y":0},
44 {"label":"0,3", "x":3, "y":0},
45
46 {"label":"1,0", "x":0, "y":1.25},
47 {"label":"1,1", "x":1, "y":1.25},
48 {"label":"1,2", "x":2, "y":1.25},
49 {"label":"1,3", "x":3, "y":1.25},
50
51 {"label":"2,0", "x":0, "y":2.25},
52 {"label":"2,1", "x":1, "y":2.25},
53 {"label":"2,2", "x":2, "y":2.25},
54
55 {"label":"3,0", "x":0, "y":3.25},
56 {"label":"3,1", "x":1, "y":3.25},
57 {"label":"3,2", "x":2, "y":3.25},
58 {"label":"3,3", "x":3, "y":2.25, "h":2},
59
60 {"label":"4,0", "x":0, "y":4.25},
61 {"label":"4,1", "x":1, "y":4.25},
62 {"label":"4,2", "x":2, "y":4.25},
63
64 {"label":"5,0", "x":0, "y":5.25, "w":2},
65 {"label":"5,2", "x":2, "y":5.25},
66 {"label":"5,3", "x":3, "y":4.25, "h":2}
67 ]
68 }
69 }
70}
diff --git a/keyboards/allison_numpad/keymaps/default/keymap.c b/keyboards/allison_numpad/keymaps/default/keymap.c
new file mode 100644
index 000000000..74310885c
--- /dev/null
+++ b/keyboards/allison_numpad/keymaps/default/keymap.c
@@ -0,0 +1,50 @@
1/* Copyright 2020 Yiancar
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_6x4( /* Base */
20 KC_PSCR, KC_SLCK, KC_PAUS, TG(1),
21 KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
22 KC_P7, KC_P8, KC_P9, KC_PPLS,
23 KC_P4, KC_P5, KC_P6, KC_PPLS,
24 KC_P1, KC_P2, KC_P3, KC_PENT,
25 KC_P0, KC_P0, KC_PDOT, KC_PENT),
26
27 [1] = LAYOUT_ortho_6x4( /* FN1 */
28 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
29 BL_TOGG, BL_INC, BL_DEC, BL_BRTG,
30 KC_TRNS, KC_UP, KC_TRNS, KC_TRNS,
31 KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS,
32 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
33 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
34
35 [2] = LAYOUT_ortho_6x4( /* Empty for dynamic keymaps */
36 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
37 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
40 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
42
43 [3] = LAYOUT_ortho_6x4( /* Empty for dynamic keymaps */
44 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
46 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
47 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
48 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
49 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
50};
diff --git a/keyboards/allison_numpad/keymaps/default/readme.md b/keyboards/allison_numpad/keymaps/default/readme.md
new file mode 100644
index 000000000..b6b98a181
--- /dev/null
+++ b/keyboards/allison_numpad/keymaps/default/readme.md
@@ -0,0 +1,5 @@
1# The default keymap for Allison Numpad
2
3![NUMPAD](https://i.imgur.com/1n2pl5p.png)
4
5![NUMPAD FN1](https://i.imgur.com/1n2pl5p.png) \ No newline at end of file
diff --git a/keyboards/allison_numpad/keymaps/via/keymap.c b/keyboards/allison_numpad/keymaps/via/keymap.c
new file mode 100644
index 000000000..74310885c
--- /dev/null
+++ b/keyboards/allison_numpad/keymaps/via/keymap.c
@@ -0,0 +1,50 @@
1/* Copyright 2020 Yiancar
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_6x4( /* Base */
20 KC_PSCR, KC_SLCK, KC_PAUS, TG(1),
21 KC_NLCK, KC_PSLS, KC_PAST, KC_PMNS,
22 KC_P7, KC_P8, KC_P9, KC_PPLS,
23 KC_P4, KC_P5, KC_P6, KC_PPLS,
24 KC_P1, KC_P2, KC_P3, KC_PENT,
25 KC_P0, KC_P0, KC_PDOT, KC_PENT),
26
27 [1] = LAYOUT_ortho_6x4( /* FN1 */
28 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
29 BL_TOGG, BL_INC, BL_DEC, BL_BRTG,
30 KC_TRNS, KC_UP, KC_TRNS, KC_TRNS,
31 KC_LEFT, KC_DOWN, KC_RGHT, KC_TRNS,
32 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
33 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
34
35 [2] = LAYOUT_ortho_6x4( /* Empty for dynamic keymaps */
36 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
37 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
38 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
39 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
40 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
41 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
42
43 [3] = LAYOUT_ortho_6x4( /* Empty for dynamic keymaps */
44 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
45 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
46 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
47 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
48 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
49 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS),
50};
diff --git a/keyboards/allison_numpad/keymaps/via/readme.md b/keyboards/allison_numpad/keymaps/via/readme.md
new file mode 100644
index 000000000..b82bc8e79
--- /dev/null
+++ b/keyboards/allison_numpad/keymaps/via/readme.md
@@ -0,0 +1 @@
# Compile with this keymap to use VIA
diff --git a/keyboards/allison_numpad/keymaps/via/rules.mk b/keyboards/allison_numpad/keymaps/via/rules.mk
new file mode 100644
index 000000000..1e5b99807
--- /dev/null
+++ b/keyboards/allison_numpad/keymaps/via/rules.mk
@@ -0,0 +1 @@
VIA_ENABLE = yes
diff --git a/keyboards/allison_numpad/readme.md b/keyboards/allison_numpad/readme.md
new file mode 100644
index 000000000..82992339e
--- /dev/null
+++ b/keyboards/allison_numpad/readme.md
@@ -0,0 +1,15 @@
1# Allison Numpad
2
3![Allison Numpad](https://i.imgur.com/tvLtu4K.jpg)
4
5A custom luxurious numpad to match Allison
6
7* Keyboard Maintainer: [Yiancar](http://yiancar-designs.com/) and on [GitHub](https://github.com/yiancar)
8* Hardware Supported: ATmega32U4
9* Hardware Availability: Small production run by mrpetrov#9585 and [protoTypist](https://discord.gg/UvskpBB)
10
11Make example for this keyboard (after setting up your build environment):
12
13 make allison_numpad:default
14
15See 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/allison_numpad/rules.mk b/keyboards/allison_numpad/rules.mk
new file mode 100644
index 000000000..3bf8aba9f
--- /dev/null
+++ b/keyboards/allison_numpad/rules.mk
@@ -0,0 +1,20 @@
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 = yes # Enable Bootmagic Lite
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
15NKRO_ENABLE = yes # Enable N-Key Rollover
16BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
17RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
18AUDIO_ENABLE = no # Audio output
19
20LAYOUTS = ortho_6x4 numpad_6x4