aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzvecr <git@zvecr.com>2019-02-26 01:07:58 +0000
committerDrashna Jaelre <drashna@live.com>2019-02-25 17:07:58 -0800
commit36fce12d080a4dd37a00f504396bd94b7a06e203 (patch)
tree31024d41f5b410f99603e244ac68466c168edfb8
parent303859ea284ebd08e305ac1bd907aee399f5a01d (diff)
downloadqmk_firmware-36fce12d080a4dd37a00f504396bd94b7a06e203.tar.gz
qmk_firmware-36fce12d080a4dd37a00f504396bd94b7a06e203.zip
[Keyboard] Initial refactor of maxipad to conform to current standards (#5233)
-rw-r--r--keyboards/maxipad/config.h69
-rw-r--r--keyboards/maxipad/info.json7
-rw-r--r--keyboards/maxipad/keymaps/default/config.h19
-rw-r--r--keyboards/maxipad/keymaps/default/keymap.c50
-rw-r--r--keyboards/maxipad/keymaps/default/readme.md1
-rw-r--r--keyboards/maxipad/maxipad.c15
-rw-r--r--keyboards/maxipad/maxipad.h58
-rw-r--r--keyboards/maxipad/promicro/config.h39
-rw-r--r--keyboards/maxipad/promicro/promicro.c16
-rw-r--r--keyboards/maxipad/promicro/promicro.h20
-rw-r--r--keyboards/maxipad/promicro/rules.mk58
-rw-r--r--keyboards/maxipad/readme.md28
-rw-r--r--keyboards/maxipad/rules.mk80
-rw-r--r--keyboards/maxipad/teensy2/config.h39
-rw-r--r--keyboards/maxipad/teensy2/rules.mk58
-rw-r--r--keyboards/maxipad/teensy2/teensy2.c16
-rw-r--r--keyboards/maxipad/teensy2/teensy2.h19
17 files changed, 438 insertions, 154 deletions
diff --git a/keyboards/maxipad/config.h b/keyboards/maxipad/config.h
index 1acd232c9..6d8225d74 100644
--- a/keyboards/maxipad/config.h
+++ b/keyboards/maxipad/config.h
@@ -1,22 +1,19 @@
1/* 1/* Copyright 2019
2Copyright 2012 Jun Wako <wakojun@gmail.com> 2 *
3 3 * This program is free software: you can redistribute it and/or modify
4This 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
5it under the terms of the GNU General Public License as published by 5 * the Free Software Foundation, either version 2 of the License, or
6the Free Software Foundation, either version 2 of the License, or 6 * (at your option) any later version.
7(at your option) any later version. 7 *
8 8 * This program is distributed in the hope that it will be useful,
9This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details.
12GNU General Public License for more details. 12 *
13 13 * You should have received a copy of the GNU General Public License
14You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15along with this program. If not, see <http://www.gnu.org/licenses/>. 15 */
16*/ 16#pragma once
17
18#ifndef CONFIG_H
19#define CONFIG_H
20 17
21#include "config_common.h" 18#include "config_common.h"
22 19
@@ -28,37 +25,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
28#define PRODUCT maxipad 25#define PRODUCT maxipad
29#define DESCRIPTION A custom keyboard 26#define DESCRIPTION A custom keyboard
30 27
31/* key matrix size */ 28/* define if matrix has ghost (lacks anti-ghosting diodes) */
32#define MATRIX_ROWS 5
33#define MATRIX_COLS 6
34
35/*
36 * Keyboard Matrix Assignments
37 *
38 * Change this to how you wired your keyboard
39 * COLS: AVR pins used for columns, left to right
40 * ROWS: AVR pins used for rows, top to bottom
41 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
42 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
43 *
44*/
45//Pro micro pinout
46 #define MATRIX_ROW_PINS { B6, B2, B3, B1, F7 }
47 #define MATRIX_COL_PINS { F4, C6, D7, F5, B4, B5 }
48 #define UNUSED_PINS
49//Teensy 2 pinout
50 //#define MATRIX_ROW_PINS { B6, F7, B2, B3, B1 }
51 //#define MATRIX_COL_PINS { F6, C6, D7, F5, B4, B5 }
52 //#define UNUSED_PINS
53
54/* COL2ROW or ROW2COL */
55#define DIODE_DIRECTION COL2ROW
56
57/* define if matrix has ghost */
58//#define MATRIX_HAS_GHOST 29//#define MATRIX_HAS_GHOST
59 30
60/* number of backlight levels */ 31/* number of backlight levels */
61#define BACKLIGHT_LEVELS 3 32//#define BACKLIGHT_LEVELS 3
62 33
63/* Set 0 if debouncing isn't needed */ 34/* Set 0 if debouncing isn't needed */
64#define DEBOUNCING_DELAY 5 35#define DEBOUNCING_DELAY 5
@@ -86,4 +57,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
86//#define NO_ACTION_MACRO 57//#define NO_ACTION_MACRO
87//#define NO_ACTION_FUNCTION 58//#define NO_ACTION_FUNCTION
88 59
89#endif 60/* Bootmagic Lite key configuration */
61// #define BOOTMAGIC_LITE_ROW 0
62// #define BOOTMAGIC_LITE_COLUMN 0
diff --git a/keyboards/maxipad/info.json b/keyboards/maxipad/info.json
index 3ee4830c4..84daa5aba 100644
--- a/keyboards/maxipad/info.json
+++ b/keyboards/maxipad/info.json
@@ -5,8 +5,11 @@
5 "width": 6, 5 "width": 6,
6 "height": 5, 6 "height": 5,
7 "layouts": { 7 "layouts": {
8 "LAYOUT": { 8 "LAYOUT_grid": {
9 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"x":0, "y":4}, {"x":1, "y":4}, {"x":2, "y":4}, {"x":3, "y":4}, {"x":4, "y":4}, {"x":5, "y":4}] 9 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"x":0, "y":4}, {"x":1, "y":4}, {"x":2, "y":4}, {"x":3, "y":4}, {"x":4, "y":4}, {"x":5, "y":4}]
10 } 10 },
11 "LAYOUT_1x2uC": {
12 "layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":4, "y":0}, {"x":5, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":4, "y":1}, {"x":5, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":4, "y":2}, {"x":5, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":4, "y":3}, {"x":5, "y":3}, {"x":0, "y":4}, {"x":1, "y":4}, {"x":2, "y":4}, {"x":3, "y":4}, {"w": 2, "x":4, "y":4}]
13 }
11 } 14 }
12} 15}
diff --git a/keyboards/maxipad/keymaps/default/config.h b/keyboards/maxipad/keymaps/default/config.h
new file mode 100644
index 000000000..08c234aee
--- /dev/null
+++ b/keyboards/maxipad/keymaps/default/config.h
@@ -0,0 +1,19 @@
1/* Copyright 2019
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// place overrides here
diff --git a/keyboards/maxipad/keymaps/default/keymap.c b/keyboards/maxipad/keymaps/default/keymap.c
index 5cec84c54..097156931 100644
--- a/keyboards/maxipad/keymaps/default/keymap.c
+++ b/keyboards/maxipad/keymaps/default/keymap.c
@@ -1,23 +1,33 @@
1#include "maxipad.h" 1/* Copyright 2019
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
2 17
3const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { 18const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
4[0] = LAYOUT( /* Base */ 19 [0] = LAYOUT( /* Base */
5 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, \ 20 KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, \
6 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, \ 21 KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, \
7 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, \ 22 MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, \
8 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, \ 23 KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, \
9 KC_LCTL, KC_LALT, MO(1), KC_ENT,KC_GRV,KC_SPC \ 24 KC_LCTL, KC_LALT, MO(1), KC_ENT, KC_GRV, KC_SPC \
10), 25 ),
11[1] = LAYOUT( 26 [1] = LAYOUT(
12 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, \ 27 KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, \
13 KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, \ 28 _______, _______, KC_UP, _______, _______, _______, \
14 KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, KC_TRNS, \ 29 _______, KC_LEFT, KC_DOWN, KC_RGHT, _______, _______, \
15 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, \ 30 _______, _______, _______, _______, _______, _______, \
16 KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SPC \ 31 _______, _______, _______, _______, _______, _______ \
17), 32 ),
18};
19
20const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) // MACRODOWN only works in this function
21{
22 return MACRO_NONE;
23}; 33};
diff --git a/keyboards/maxipad/keymaps/default/readme.md b/keyboards/maxipad/keymaps/default/readme.md
new file mode 100644
index 000000000..a6c0d4a3f
--- /dev/null
+++ b/keyboards/maxipad/keymaps/default/readme.md
@@ -0,0 +1 @@
# The default keymap for maxipad \ No newline at end of file
diff --git a/keyboards/maxipad/maxipad.c b/keyboards/maxipad/maxipad.c
index a193b112b..44a0c2b74 100644
--- a/keyboards/maxipad/maxipad.c
+++ b/keyboards/maxipad/maxipad.c
@@ -1 +1,16 @@
1/* Copyright 2019
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 */
1#include "maxipad.h" \ No newline at end of file 16#include "maxipad.h" \ No newline at end of file
diff --git a/keyboards/maxipad/maxipad.h b/keyboards/maxipad/maxipad.h
index 613f7df22..e2a080505 100644
--- a/keyboards/maxipad/maxipad.h
+++ b/keyboards/maxipad/maxipad.h
@@ -1,13 +1,39 @@
1#ifndef MAXIPAD_H 1/* Copyright 2019
2#define MAXIPAD_H 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#pragma once
3 17
4#include "quantum.h" 18#include "quantum.h"
5 19
6// This a shortcut to help you visually see your layout. 20#define ___ KC_NO
7// The following is an example using the Planck MIT layout 21
8// The first section contains all of the arguements 22#ifdef KEYBOARD_maxipad_promicro
9// The second converts the arguments into a two-dimensional array 23 #include "promicro.h"
10#define LAYOUT( \ 24#elif KEYBOARD_maxipad_teensy2
25 #include "teensy2.h"
26#endif
27
28/* This a shortcut to help you visually see your layout.
29 *
30 * The first section contains all of the arguments representing the physical
31 * layout of the board and position of the keys.
32 *
33 * The second converts the arguments into a two-dimensional array which
34 * represents the switch matrix.
35 */
36#define LAYOUT_grid( \
11 k00, k01, k02, k03, k04, k05, \ 37 k00, k01, k02, k03, k04, k05, \
12 k10, k11, k12, k13, k14, k15, \ 38 k10, k11, k12, k13, k14, k15, \
13 k20, k21, k22, k23, k24, k25, \ 39 k20, k21, k22, k23, k24, k25, \
@@ -22,4 +48,20 @@
22 { k40, k41, k42, k43, k44, k45 } \ 48 { k40, k41, k42, k43, k44, k45 } \
23} 49}
24 50
25#endif 51#define LAYOUT_1x2uC( \
52 k00, k01, k02, k03, k04, k05, \
53 k10, k11, k12, k13, k14, k15, \
54 k20, k21, k22, k23, k24, k25, \
55 k30, k31, k32, k33, k34, k35, \
56 k40, k41, k42, k43, k44 \
57) \
58{ \
59 { k00, k01, k02, k03, k04, k05 }, \
60 { k10, k11, k12, k13, k14, k15 }, \
61 { k20, k21, k22, k23, k24, k25 }, \
62 { k30, k31, k32, k33, k34, k35 }, \
63 { k40, k41, k42, k43, ___, k44 } \
64}
65
66#define LAYOUT LAYOUT_grid
67#define LAYOUT_ortho_5x6 LAYOUT_grid
diff --git a/keyboards/maxipad/promicro/config.h b/keyboards/maxipad/promicro/config.h
new file mode 100644
index 000000000..008e7929c
--- /dev/null
+++ b/keyboards/maxipad/promicro/config.h
@@ -0,0 +1,39 @@
1/* Copyright 2019
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#pragma once
17
18#include "config_common.h"
19
20/* key matrix size */
21#define MATRIX_ROWS 5
22#define MATRIX_COLS 6
23
24/*
25 * Keyboard Matrix Assignments
26 *
27 * Change this to how you wired your keyboard
28 * COLS: AVR pins used for columns, left to right
29 * ROWS: AVR pins used for rows, top to bottom
30 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
31 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
32 *
33*/
34#define MATRIX_ROW_PINS { B6, B2, B3, B1, F7 }
35#define MATRIX_COL_PINS { F4, C6, D7, F5, B4, B5 }
36#define UNUSED_PINS
37
38/* COL2ROW, ROW2COL*/
39#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/maxipad/promicro/promicro.c b/keyboards/maxipad/promicro/promicro.c
new file mode 100644
index 000000000..4ecd97464
--- /dev/null
+++ b/keyboards/maxipad/promicro/promicro.c
@@ -0,0 +1,16 @@
1/* Copyright 2019
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 "maxipad.h"
diff --git a/keyboards/maxipad/promicro/promicro.h b/keyboards/maxipad/promicro/promicro.h
new file mode 100644
index 000000000..8f1419c9d
--- /dev/null
+++ b/keyboards/maxipad/promicro/promicro.h
@@ -0,0 +1,20 @@
1/* Copyright 2019
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#pragma once
17
18#include "maxipad.h"
19#include "quantum.h"
20
diff --git a/keyboards/maxipad/promicro/rules.mk b/keyboards/maxipad/promicro/rules.mk
new file mode 100644
index 000000000..dc6f19623
--- /dev/null
+++ b/keyboards/maxipad/promicro/rules.mk
@@ -0,0 +1,58 @@
1# MCU name
2MCU = atmega32u4
3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17
18#
19# LUFA specific
20#
21# Target architecture (see library "Board Types" documentation).
22ARCH = AVR8
23
24# Input clock frequency.
25# This will define a symbol, F_USB, in all source code files equal to the
26# input clock frequency (before any prescaling is performed) in Hz. This value may
27# differ from F_CPU if prescaling is used on the latter, and is required as the
28# raw input clock is fed directly to the PLL sections of the AVR for high speed
29# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
30# at the end, this will be done automatically to create a 32-bit value in your
31# source code.
32#
33# If no clock division is performed on the input clock inside the AVR (via the
34# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
35F_USB = $(F_CPU)
36
37# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection
42# Teensy halfkay
43# Pro Micro caterina
44# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu
47# atmega32a bootloadHID
48BOOTLOADER = caterina
49
50
51# If you don't know the bootloader type, then you can specify the
52# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
53# Teensy halfKay 512
54# Teensy++ halfKay 1024
55# Atmel DFU loader 4096
56# LUFA bootloader 4096
57# USBaspLoader 2048
58# OPT_DEFS += -DBOOTLOADER_SIZE=4096
diff --git a/keyboards/maxipad/readme.md b/keyboards/maxipad/readme.md
index b62afdf34..65661b065 100644
--- a/keyboards/maxipad/readme.md
+++ b/keyboards/maxipad/readme.md
@@ -1,17 +1,27 @@
1# Maxipad 1# Maxipad
2 2
3## Quantum MK Firmware 3![Maxipad](https://images.bigcartel.com/product_images/193297217/product_image.jpg)
4 4
5For the full Quantum feature list, see [the parent readme.md](/readme.md). 55 x 6 Gamepad/Macropad PCBs from /u/wootpatoot
6 6
7If you are using a pro micro then make sure to enable USE_PRO_MICRO in the makefile 7- Multiple layouts supported
8Change the config.h pinout to match your mcu!! 8 - Full-grid
9 - 2u thumb-key (the 2u only works in the bottom right position).
10- Multiple controllers supported
11 - Pro Micro
12 - PJRC Teensy 2.0
9 13
10Depending on which keymap you would like to use, you will have to compile slightly differently. 14Keyboard Maintainer: QMK Community
15Hardware Supported: Maxipad PCB
16Hardware Availability: [switchtop](http://www.switchtop.com/product/gamepad-macropad-pcbs)
11 17
12### Default 18Make example for this keyboard (after setting up your build environment):
13 19
14To build with the default keymap, simply run `make maxipad:default`. 20 make maxipad:default
15 21
16### Other Keymaps 22If you would like to use one of the alternative controllers:
17Several version of keymap are available in advance but you are recommended to define your favorite layout yourself. To define your own keymap create file named `<name>.c` and see keymap document (you can find in top readme.md) and existent keymap files. 23
24 make maxipad/promicro:default
25 make maxipad/teensy2:default
26
27See 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/maxipad/rules.mk b/keyboards/maxipad/rules.mk
index 31be1924f..735c7af26 100644
--- a/keyboards/maxipad/rules.mk
+++ b/keyboards/maxipad/rules.mk
@@ -1,76 +1,22 @@
1
2
3# MCU name
4#MCU = at90usb1287
5MCU = atmega32u4
6
7# Processor frequency.
8# This will define a symbol, F_CPU, in all source code files equal to the
9# processor frequency in Hz. You can then use this symbol in your source code to
10# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
11# automatically to create a 32-bit value in your source code.
12#
13# This will be an integer division of F_USB below, as it is sourced by
14# F_USB after it has run through any CPU prescalers. Note that this value
15# does not *change* the processor frequency - it should merely be updated to
16# reflect the processor speed set externally so that the code can use accurate
17# software delays.
18F_CPU = 16000000
19
20
21#
22# LUFA specific
23#
24# Target architecture (see library "Board Types" documentation).
25ARCH = AVR8
26
27# Input clock frequency.
28# This will define a symbol, F_USB, in all source code files equal to the
29# input clock frequency (before any prescaling is performed) in Hz. This value may
30# differ from F_CPU if prescaling is used on the latter, and is required as the
31# raw input clock is fed directly to the PLL sections of the AVR for high speed
32# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
33# at the end, this will be done automatically to create a 32-bit value in your
34# source code.
35#
36# If no clock division is performed on the input clock inside the AVR (via the
37# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
38F_USB = $(F_CPU)
39
40# Interrupt driven control endpoint task(+60)
41OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
42
43
44# Boot Section Size in *bytes*
45# Teensy halfKay 512
46# Teensy++ halfKay 1024
47# Atmel DFU loader 4096
48# LUFA bootloader 4096
49# USBaspLoader 2048
50OPT_DEFS += -DBOOTLOADER_SIZE=512
51
52
53# Build Options 1# Build Options
54# comment out to disable the options. 2# change yes to no to disable
55# 3#
56BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) 4BOOTMAGIC_ENABLE = lite # Virtual DIP switch configuration(+1000)
57MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 5MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
58EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 6EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
59CONSOLE_ENABLE = yes # Console for debug(+400) 7CONSOLE_ENABLE = no # Console for debug(+400)
60COMMAND_ENABLE = yes # Commands for debug and configuration 8COMMAND_ENABLE = no # Commands for debug and configuration
61# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE 9# Do not enable SLEEP_LED_ENABLE. it uses the same timer as BACKLIGHT_ENABLE
62# SLEEP_LED_ENABLE = yes # Breathing sleep LED during USB suspend
63# NKRO_ENABLE = yes # USB Nkey Rollover - if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
64# BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
65# MIDI_ENABLE = YES # MIDI controls
66# UNICODE_ENABLE = YES # Unicode
67# BLUETOOTH_ENABLE = yes # Enable Bluetooth with the Adafruit EZ-Key HID
68USE_PRO_MICRO = yes
69SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend 10SLEEP_LED_ENABLE = no # Breathing sleep LED during USB suspend
70# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work 11# if this doesn't work, see here: https://github.com/tmk/tmk_keyboard/wiki/FAQ#nkro-doesnt-work
71NKRO_ENABLE = no # USB Nkey Rollover 12NKRO_ENABLE = yes # USB Nkey Rollover
72BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default 13BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality on B7 by default
73MIDI_ENABLE = no # MIDI controls 14RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
15MIDI_ENABLE = no # MIDI support (+2400 to 4200, depending on config)
74UNICODE_ENABLE = no # Unicode 16UNICODE_ENABLE = no # Unicode
75BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID 17BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID
76AUDIO_ENABLE = no # Audio output on port C6 18AUDIO_ENABLE = no # Audio output on port C6
19FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches
20HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400)
21
22DEFAULT_FOLDER = maxipad/promicro
diff --git a/keyboards/maxipad/teensy2/config.h b/keyboards/maxipad/teensy2/config.h
new file mode 100644
index 000000000..4e43920d5
--- /dev/null
+++ b/keyboards/maxipad/teensy2/config.h
@@ -0,0 +1,39 @@
1/* Copyright 2019
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#pragma once
17
18#include "config_common.h"
19
20/* key matrix size */
21#define MATRIX_ROWS 5
22#define MATRIX_COLS 6
23
24/*
25 * Keyboard Matrix Assignments
26 *
27 * Change this to how you wired your keyboard
28 * COLS: AVR pins used for columns, left to right
29 * ROWS: AVR pins used for rows, top to bottom
30 * DIODE_DIRECTION: COL2ROW = COL = Anode (+), ROW = Cathode (-, marked on diode)
31 * ROW2COL = ROW = Anode (+), COL = Cathode (-, marked on diode)
32 *
33*/
34#define MATRIX_ROW_PINS { B6, F7, B2, B3, B1 }
35#define MATRIX_COL_PINS { F6, C6, D7, F5, B4, B5 }
36#define UNUSED_PINS
37
38/* COL2ROW, ROW2COL*/
39#define DIODE_DIRECTION COL2ROW
diff --git a/keyboards/maxipad/teensy2/rules.mk b/keyboards/maxipad/teensy2/rules.mk
new file mode 100644
index 000000000..3fb7c7e5a
--- /dev/null
+++ b/keyboards/maxipad/teensy2/rules.mk
@@ -0,0 +1,58 @@
1# MCU name
2MCU = atmega32u4
3
4# Processor frequency.
5# This will define a symbol, F_CPU, in all source code files equal to the
6# processor frequency in Hz. You can then use this symbol in your source code to
7# calculate timings. Do NOT tack on a 'UL' at the end, this will be done
8# automatically to create a 32-bit value in your source code.
9#
10# This will be an integer division of F_USB below, as it is sourced by
11# F_USB after it has run through any CPU prescalers. Note that this value
12# does not *change* the processor frequency - it should merely be updated to
13# reflect the processor speed set externally so that the code can use accurate
14# software delays.
15F_CPU = 16000000
16
17
18#
19# LUFA specific
20#
21# Target architecture (see library "Board Types" documentation).
22ARCH = AVR8
23
24# Input clock frequency.
25# This will define a symbol, F_USB, in all source code files equal to the
26# input clock frequency (before any prescaling is performed) in Hz. This value may
27# differ from F_CPU if prescaling is used on the latter, and is required as the
28# raw input clock is fed directly to the PLL sections of the AVR for high speed
29# clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
30# at the end, this will be done automatically to create a 32-bit value in your
31# source code.
32#
33# If no clock division is performed on the input clock inside the AVR (via the
34# CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
35F_USB = $(F_CPU)
36
37# Interrupt driven control endpoint task(+60)
38OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT
39
40
41# Bootloader selection
42# Teensy halfkay
43# Pro Micro caterina
44# Atmel DFU atmel-dfu
45# LUFA DFU lufa-dfu
46# QMK DFU qmk-dfu
47# atmega32a bootloadHID
48BOOTLOADER = halfkay
49
50
51# If you don't know the bootloader type, then you can specify the
52# Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line
53# Teensy halfKay 512
54# Teensy++ halfKay 1024
55# Atmel DFU loader 4096
56# LUFA bootloader 4096
57# USBaspLoader 2048
58# OPT_DEFS += -DBOOTLOADER_SIZE=4096
diff --git a/keyboards/maxipad/teensy2/teensy2.c b/keyboards/maxipad/teensy2/teensy2.c
new file mode 100644
index 000000000..4ecd97464
--- /dev/null
+++ b/keyboards/maxipad/teensy2/teensy2.c
@@ -0,0 +1,16 @@
1/* Copyright 2019
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 "maxipad.h"
diff --git a/keyboards/maxipad/teensy2/teensy2.h b/keyboards/maxipad/teensy2/teensy2.h
new file mode 100644
index 000000000..acb213acc
--- /dev/null
+++ b/keyboards/maxipad/teensy2/teensy2.h
@@ -0,0 +1,19 @@
1/* Copyright 2019
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#pragma once
17
18#include "maxipad.h"
19#include "quantum.h"