summaryrefslogtreecommitdiffstats
path: root/keyboards/novelpad/keymaps
diff options
context:
space:
mode:
authornoroadsleft <18669334+noroadsleft@users.noreply.github.com>2018-07-01 20:06:00 +0200
committerDrashna Jaelre <drashna@live.com>2018-07-01 20:06:00 +0200
commite8d2f4f891c2ac38be2eb03694725c8bfa8801a9 (patch)
treefa4ed10c1616812d6d771687d22f5ca3e7ac812d /keyboards/novelpad/keymaps
parent29954efd064fdf635af0895fc53bbaee58a1efda (diff)
downloadqmk_firmware-e8d2f4f891c2ac38be2eb03694725c8bfa8801a9.tar.gz
qmk_firmware-e8d2f4f891c2ac38be2eb03694725c8bfa8801a9.tar.xz
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
Diffstat (limited to 'keyboards/novelpad/keymaps')
-rwxr-xr-xkeyboards/novelpad/keymaps/default/keymap.c29
1 files changed, 16 insertions, 13 deletions
diff --git a/keyboards/novelpad/keymaps/default/keymap.c b/keyboards/novelpad/keymaps/default/keymap.c
index 59cc1adc8..78cdff512 100755
--- a/keyboards/novelpad/keymaps/default/keymap.c
+++ b/keyboards/novelpad/keymaps/default/keymap.c
@@ -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,20 +27,21 @@ 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 \
- ),
+ 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
+ ),
+
+ [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
+ ),
};