1
0
Fork 0

The Ruler QMK Configurator Support (#3308)

* Update KEYMAP macro to LAYOUT

* Add QMK Configurator support
This commit is contained in:
MechMerlin 2018-07-04 18:04:59 -07:00 committed by Drashna Jaelre
parent 7eeb8932a1
commit 090b4a81b9
3 changed files with 18 additions and 6 deletions

View file

@ -0,0 +1,12 @@
{
"keyboard_name": "The Ruler",
"url": "",
"maintainer": "qmk",
"width": 7,
"height": 1,
"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, "w":2}]
}
}
}

View file

@ -1,4 +1,4 @@
#include "the_ruler.h"
#include QMK_KEYBOARD_H
#include "action_layer.h"
#include "eeconfig.h"
@ -33,7 +33,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | FN_2 | 2 |TSKMGR |CALTDEL| ESC | FN_1 |
* `-----------------------------------------------'
*/
[_DEFAULT] = KEYMAP( \
[_DEFAULT] = LAYOUT( \
MO(_FN_2), KC_2, TSKMGR, CALTDEL, KC_ESC, MO(_FN_1)
),
@ -42,7 +42,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* |RGB_TOG|RGB_HUD|RGB_HUI|RGB_SAD|RGB_SAI| FN_1 |
* `-----------------------------------------------'
*/
[_FN_1] = KEYMAP( \
[_FN_1] = LAYOUT( \
RGB_TOG, RGB_HUD, RGB_HUI, RGB_SAD, RGB_SAI, _______
),
@ -51,7 +51,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
* | FN_2 |RGB_VAD|RGB_VAI|RGB_MOD|TSKMGR | RESET |
* `-----------------------------------------------'
*/
[_FN_2] = KEYMAP( \
[_FN_2] = LAYOUT( \
_______, RGB_VAD, RGB_VAI, RGB_MOD, TSKMGR, RESET
)

View file

@ -3,7 +3,7 @@
#include "quantum.h"
#define KEYMAP( \
#define LAYOUT( \
K00, K01, K02, K03, K04, K05 ) { \
{ K00, K01, K02, K03, K04, K05 } \
}