~ruther/qmk_firmware

7eeb8932a17443fb6e94a6aeeaed895790b561d2 — MechMerlin 7 years ago 876377e
QMK Configurator support for Maxipad keypad (#3307)

A keyboards/maxipad/info.json => keyboards/maxipad/info.json +12 -0
@@ 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}]
      }
  }
}

M keyboards/maxipad/keymaps/default/keymap.c => keyboards/maxipad/keymaps/default/keymap.c +6 -6
@@ 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
};

M keyboards/maxipad/maxipad.h => keyboards/maxipad/maxipad.h +1 -1
@@ 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, \

M keyboards/maxipad/readme.md => keyboards/maxipad/readme.md +2 -14
@@ 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 `<name>.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|<name>]
```

Keymaps follow the format **__\<name\>.c__** and are stored in the `keymaps` folder.