From 7eeb8932a17443fb6e94a6aeeaed895790b561d2 Mon Sep 17 00:00:00 2001 From: MechMerlin <30334081+mechmerlin@users.noreply.github.com> Date: Wed, 4 Jul 2018 18:04:22 -0700 Subject: QMK Configurator support for Maxipad keypad (#3307) --- keyboards/maxipad/info.json | 12 ++++++++++++ keyboards/maxipad/keymaps/default/keymap.c | 12 ++++++------ keyboards/maxipad/maxipad.h | 2 +- keyboards/maxipad/readme.md | 16 ++-------------- 4 files changed, 21 insertions(+), 21 deletions(-) create mode 100644 keyboards/maxipad/info.json diff --git a/keyboards/maxipad/info.json b/keyboards/maxipad/info.json new file mode 100644 index 0000000000..3ee4830c47 --- /dev/null +++ b/keyboards/maxipad/info.json @@ -0,0 +1,12 @@ +{ + "keyboard_name": "maxipad", + "url": "", + "maintainer": "qmk", + "width": 6, + "height": 5, + "layouts": { + "LAYOUT": { + "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}] + } + } +} diff --git a/keyboards/maxipad/keymaps/default/keymap.c b/keyboards/maxipad/keymaps/default/keymap.c index 227cef7d86..e730200a20 100644 --- a/keyboards/maxipad/keymaps/default/keymap.c +++ b/keyboards/maxipad/keymaps/default/keymap.c @@ -1,14 +1,14 @@ #include "maxipad.h" - + const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { -[0] = KEYMAP( /* Base */ +[0] = LAYOUT( /* Base */ KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, \ KC_TAB, KC_Q, KC_W, KC_E, KC_R, KC_T, \ MO(1), KC_A, KC_S, KC_D, KC_F, KC_G, \ KC_LSFT, KC_Z, KC_X, KC_C, KC_V, KC_B, \ KC_LCTL, KC_LALT, MO(1), KC_ENT,KC_GRV,KC_SPC \ ), -[1] = KEYMAP( +[1] = LAYOUT( KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, \ KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, \ KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, KC_TRNS, \ @@ -16,11 +16,11 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SPC \ ), }; - + const uint16_t PROGMEM fn_actions[] = { }; - + const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) // MACRODOWN only works in this function { return MACRO_NONE; -}; \ No newline at end of file +}; diff --git a/keyboards/maxipad/maxipad.h b/keyboards/maxipad/maxipad.h index 4d8c6428d2..613f7df22e 100644 --- a/keyboards/maxipad/maxipad.h +++ b/keyboards/maxipad/maxipad.h @@ -7,7 +7,7 @@ // The following is an example using the Planck MIT layout // The first section contains all of the arguements // The second converts the arguments into a two-dimensional array -#define KEYMAP( \ +#define LAYOUT( \ k00, k01, k02, k03, k04, k05, \ k10, k11, k12, k13, k14, k15, \ k20, k21, k22, k23, k24, k25, \ diff --git a/keyboards/maxipad/readme.md b/keyboards/maxipad/readme.md index 861ea2b078..b62afdf343 100644 --- a/keyboards/maxipad/readme.md +++ b/keyboards/maxipad/readme.md @@ -1,4 +1,4 @@ -Maxipad keyboard firmware +# Maxipad ## Quantum MK Firmware @@ -7,23 +7,11 @@ For the full Quantum feature list, see [the parent readme.md](/readme.md). If you are using a pro micro then make sure to enable USE_PRO_MICRO in the makefile Change the config.h pinout to match your mcu!! -Download or clone the whole firmware and navigate to the keyboards/maxipad folder. Once your dev env is setup, you'll be able to type `make` to generate your .hex - you can then use the Teensy Loader to program your .hex file. - Depending on which keymap you would like to use, you will have to compile slightly differently. ### Default -To build with the default keymap, simply run `make`. - +To build with the default keymap, simply run `make maxipad:default`. ### Other Keymaps Several 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 `.c` and see keymap document (you can find in top readme.md) and existent keymap files. - - -To build the firmware binary hex file with a keymap just do `make` with a keymap like this: - -``` -$ make [default|jack|] -``` - -Keymaps follow the format **__\.c__** and are stored in the `keymaps` folder. -- cgit v1.2.1