diff options
| author | MechMerlin <30334081+mechmerlin@users.noreply.github.com> | 2018-07-04 18:04:22 -0700 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2018-07-04 18:04:22 -0700 |
| commit | 7eeb8932a17443fb6e94a6aeeaed895790b561d2 (patch) | |
| tree | ef7e7ac7054031cf3ad7462554d0a77bd78de79c /keyboards/maxipad | |
| parent | 876377e945da294c887a1553f07f947d10da58ec (diff) | |
| download | qmk_firmware-7eeb8932a17443fb6e94a6aeeaed895790b561d2.tar.gz qmk_firmware-7eeb8932a17443fb6e94a6aeeaed895790b561d2.zip | |
QMK Configurator support for Maxipad keypad (#3307)
Diffstat (limited to 'keyboards/maxipad')
| -rw-r--r-- | keyboards/maxipad/info.json | 12 | ||||
| -rw-r--r-- | keyboards/maxipad/keymaps/default/keymap.c | 12 | ||||
| -rw-r--r-- | keyboards/maxipad/maxipad.h | 2 | ||||
| -rw-r--r-- | keyboards/maxipad/readme.md | 16 |
4 files changed, 21 insertions, 21 deletions
diff --git a/keyboards/maxipad/info.json b/keyboards/maxipad/info.json new file mode 100644 index 000000000..3ee4830c4 --- /dev/null +++ b/keyboards/maxipad/info.json | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | { | ||
| 2 | "keyboard_name": "maxipad", | ||
| 3 | "url": "", | ||
| 4 | "maintainer": "qmk", | ||
| 5 | "width": 6, | ||
| 6 | "height": 5, | ||
| 7 | "layouts": { | ||
| 8 | "LAYOUT": { | ||
| 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 | } | ||
| 11 | } | ||
| 12 | } | ||
diff --git a/keyboards/maxipad/keymaps/default/keymap.c b/keyboards/maxipad/keymaps/default/keymap.c index 227cef7d8..e730200a2 100644 --- a/keyboards/maxipad/keymaps/default/keymap.c +++ b/keyboards/maxipad/keymaps/default/keymap.c | |||
| @@ -1,14 +1,14 @@ | |||
| 1 | #include "maxipad.h" | 1 | #include "maxipad.h" |
| 2 | 2 | ||
| 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | 3 | const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { |
| 4 | [0] = KEYMAP( /* Base */ | 4 | [0] = LAYOUT( /* Base */ |
| 5 | KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, \ | 5 | 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, \ | 6 | 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, \ | 7 | 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, \ | 8 | 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 \ | 9 | KC_LCTL, KC_LALT, MO(1), KC_ENT,KC_GRV,KC_SPC \ |
| 10 | ), | 10 | ), |
| 11 | [1] = KEYMAP( | 11 | [1] = LAYOUT( |
| 12 | KC_GRV, KC_F1, KC_F2, KC_F3, KC_F4, KC_F5, \ | 12 | 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, \ | 13 | KC_TRNS, KC_TRNS, KC_UP, KC_TRNS, KC_TRNS, KC_TRNS, \ |
| 14 | KC_TRNS, KC_LEFT, KC_DOWN, KC_RIGHT, KC_TRNS, KC_TRNS, \ | 14 | 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] = { | |||
| 16 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SPC \ | 16 | KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, KC_SPC \ |
| 17 | ), | 17 | ), |
| 18 | }; | 18 | }; |
| 19 | 19 | ||
| 20 | const uint16_t PROGMEM fn_actions[] = { | 20 | const uint16_t PROGMEM fn_actions[] = { |
| 21 | }; | 21 | }; |
| 22 | 22 | ||
| 23 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) // MACRODOWN only works in this function | 23 | const macro_t *action_get_macro(keyrecord_t *record, uint8_t id, uint8_t opt) // MACRODOWN only works in this function |
| 24 | { | 24 | { |
| 25 | return MACRO_NONE; | 25 | return MACRO_NONE; |
| 26 | }; \ No newline at end of file | 26 | }; |
diff --git a/keyboards/maxipad/maxipad.h b/keyboards/maxipad/maxipad.h index 4d8c6428d..613f7df22 100644 --- a/keyboards/maxipad/maxipad.h +++ b/keyboards/maxipad/maxipad.h | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | // The following is an example using the Planck MIT layout | 7 | // The following is an example using the Planck MIT layout |
| 8 | // The first section contains all of the arguements | 8 | // The first section contains all of the arguements |
| 9 | // The second converts the arguments into a two-dimensional array | 9 | // The second converts the arguments into a two-dimensional array |
| 10 | #define KEYMAP( \ | 10 | #define LAYOUT( \ |
| 11 | k00, k01, k02, k03, k04, k05, \ | 11 | k00, k01, k02, k03, k04, k05, \ |
| 12 | k10, k11, k12, k13, k14, k15, \ | 12 | k10, k11, k12, k13, k14, k15, \ |
| 13 | k20, k21, k22, k23, k24, k25, \ | 13 | k20, k21, k22, k23, k24, k25, \ |
diff --git a/keyboards/maxipad/readme.md b/keyboards/maxipad/readme.md index 861ea2b07..b62afdf34 100644 --- a/keyboards/maxipad/readme.md +++ b/keyboards/maxipad/readme.md | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | Maxipad keyboard firmware | 1 | # Maxipad |
| 2 | 2 | ||
| 3 | ## Quantum MK Firmware | 3 | ## Quantum MK Firmware |
| 4 | 4 | ||
| @@ -7,23 +7,11 @@ For the full Quantum feature list, see [the parent readme.md](/readme.md). | |||
| 7 | If you are using a pro micro then make sure to enable USE_PRO_MICRO in the makefile | 7 | If you are using a pro micro then make sure to enable USE_PRO_MICRO in the makefile |
| 8 | Change the config.h pinout to match your mcu!! | 8 | Change the config.h pinout to match your mcu!! |
| 9 | 9 | ||
| 10 | 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. | ||
| 11 | |||
| 12 | Depending on which keymap you would like to use, you will have to compile slightly differently. | 10 | Depending on which keymap you would like to use, you will have to compile slightly differently. |
| 13 | 11 | ||
| 14 | ### Default | 12 | ### Default |
| 15 | 13 | ||
| 16 | To build with the default keymap, simply run `make`. | 14 | To build with the default keymap, simply run `make maxipad:default`. |
| 17 | |||
| 18 | 15 | ||
| 19 | ### Other Keymaps | 16 | ### Other Keymaps |
| 20 | 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 `<name>.c` and see keymap document (you can find in top readme.md) and existent keymap files. | 17 | 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 `<name>.c` and see keymap document (you can find in top readme.md) and existent keymap files. |
| 21 | |||
| 22 | |||
| 23 | To build the firmware binary hex file with a keymap just do `make` with a keymap like this: | ||
| 24 | |||
| 25 | ``` | ||
| 26 | $ make [default|jack|<name>] | ||
| 27 | ``` | ||
| 28 | |||
| 29 | Keymaps follow the format **__\<name\>.c__** and are stored in the `keymaps` folder. | ||
