Novelpad refactor and Configurator support (#3276)

* Matrix refactor

* Keymap refactor

* Configurator support

* Add LAYOUTS = ortho_5x4 to rules.mk

* Readme formatting fix

* #include != #define

* Removed an extra comma
pull/3284/head
noroadsleft 7 years ago committed by Drashna Jaelre
parent 29954efd06
commit e8d2f4f891

@ -0,0 +1,12 @@
{
"keyboard_name": "NovelPad",
"url": "",
"maintainer": "qmk",
"width": 4,
"height": 5,
"layouts": {
"LAYOUT_ortho_5x4": {
"layout": [{"x":0, "y":0}, {"x":1, "y":0}, {"x":2, "y":0}, {"x":3, "y":0}, {"x":0, "y":1}, {"x":1, "y":1}, {"x":2, "y":1}, {"x":3, "y":1}, {"x":0, "y":2}, {"x":1, "y":2}, {"x":2, "y":2}, {"x":3, "y":2}, {"x":0, "y":3}, {"x":1, "y":3}, {"x":2, "y":3}, {"x":3, "y":3}, {"x":0, "y":4}, {"x":1, "y":4}, {"x":2, "y":4}, {"x":3, "y":4}]
}
}
}

@ -16,6 +16,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
#define _______ KC_TRNS
enum custom_keycodes {
BL = SAFE_RANGE,
WK_RED,
@ -25,19 +27,20 @@ enum custom_keycodes {
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
KEYMAP(
[0] = LAYOUT(
KC_NLCK, KC_PSLS, KC_PAST, KC_ESC,
KC_P7, KC_P8, KC_P9, KC_PMNS,
KC_P4, KC_P5, KC_P6, KC_PPLS,
KC_P1, KC_P2, KC_P3, KC_TAB,
MO(1), KC_P0, KC_PDOT, KC_ENT),
KEYMAP(
KC_TRNS, BL, RGB_MODE_SWIRL, RESET, \
RGB_TOG, RGB_MOD, RGB_MODE_PLAIN, RGB_MODE_SNAKE, \
RGB_HUI, RGB_SAI, RGB_VAI, RGB_MODE_KNIGHT, \
RGB_HUD , RGB_SAD, RGB_VAD, RGB_MODE_XMAS, \
KC_TRNS, WK_RED, WK_GREEN, WK_BLUE \
MO(1), KC_P0, KC_PDOT, KC_ENT
),
[1] = LAYOUT(
_______, BL, RGB_MODE_SWIRL, RESET,
RGB_TOG, RGB_MOD, RGB_MODE_PLAIN, RGB_MODE_SNAKE,
RGB_HUI, RGB_SAI, RGB_VAI, RGB_MODE_KNIGHT,
RGB_HUD, RGB_SAD, RGB_VAD, RGB_MODE_XMAS,
_______, WK_RED, WK_GREEN, WK_BLUE
),
};

@ -19,7 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "quantum.h"
#define KEYMAP( \
#define LAYOUT_ortho_5x4( \
K00, K01, K02, K03, \
K10, K11, K12, K13, \
K20, K21, K22, K23, \
@ -33,4 +33,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
{ K40, K41, K42, K43 } \
}
#define LAYOUT LAYOUT_ortho_5x4
#endif

@ -54,3 +54,5 @@ NKRO_ENABLE = no # USB Nkey Rollover - if this doesn't work, see here: https://
BACKLIGHT_ENABLE = yes # In-switch LEDs
AUDIO_ENABLE = no # There is no available timer or pin for audio on the NovelPad
RGBLIGHT_ENABLE = yes # RGB LEDs for underglow, installed and enabled by default for the NovelPad
LAYOUTS = ortho_5x4

Loading…
Cancel
Save