1
0
Fork 0

handwired/numpad20 Refactor and Configurator support (#4589)

* handwired/numpad20: refactor

- layout macro no longer auto-prepends keycodes with KC_
  - keymaps for this keyboard will now compile in QMK Configurator
- keymap now uses #include QMK_KEYBOARD_H
- deleted unused fn_actions code block

* handwired/numpad20: Configurator support
This commit is contained in:
noroadsleft 2018-12-11 20:49:44 -08:00 committed by MechMerlin
parent d46d304395
commit 8b6cdd1788
3 changed files with 46 additions and 18 deletions

View file

@ -1,16 +1,11 @@
#include "numpad20.h"
#define KC_ KC_TRNS
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT(
LEFT,RGHT, UP ,DOWN, \
P7 , P8 , P9 ,PLUS, \
P4 , P5 , P6 ,MINS, \
P1 , P2 , P3 , ENT, \
P0 ,DOT ,RGHT, TAB \
)
};
const uint16_t PROGMEM fn_actions[] = {
KC_LEFT, KC_RGHT, KC_UP, KC_DOWN, \
KC_P7, KC_P8, KC_P9, KC_PLUS, \
KC_P4, KC_P5, KC_P6, KC_MINS, \
KC_P1, KC_P2, KC_P3, KC_ENT, \
KC_P0, KC_DOT, KC_RGHT, KC_TAB \
)
};