diff --git a/.github/workflows/lotus.yml b/.github/workflows/lotus.yml index 9159eaf5a3..dca7ee33d0 100644 --- a/.github/workflows/lotus.yml +++ b/.github/workflows/lotus.yml @@ -33,6 +33,9 @@ jobs: - name: Build Lotus JIS variant run: qmk compile -kb lotus -km 83_jis + - name: Build Lotus Numpad + run: qmk compile -kb lotus -km numpad + # tests: # runs-on: ubuntu-latest # diff --git a/keyboards/lotus/keymaps/78_ansi/keymap.c b/keyboards/lotus/keymaps/78_ansi/keymap.c index e48b57f507..262d82227f 100644 --- a/keyboards/lotus/keymaps/78_ansi/keymap.c +++ b/keyboards/lotus/keymaps/78_ansi/keymap.c @@ -60,32 +60,3 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS, BL_TOGG, KC_TRNS, KC_TRNS, KC_HOME, KC_PGUP, KC_PGDN, KC_END ) }; - -#define NUMPAD_ROWS 4 -#define NUMPAD_COLS 8 -const uint16_t PROGMEM numpad[][NUMPAD_ROWS][NUMPAD_COLS] = { - /* - * ┌────┬────┬────┬────┐ - * 4 keys │Esc │Calc│ = │ <- │ - * ├────┼────┼────┼────┤ - * 4 keys │ Num│ / │ * │ - │ - * ├────┼────┼────┼────┤ - * 3 keys │ 7 │ 8 │ 9 │ │ - * ├────┼────┼────┤ │ - * 4 keys │ 4 │ 5 │ 6 │ + │ - * ├────┼────┼────┼────┤ - * 3 keys │ 1 │ 2 │ 3 │ │ - * ├────┴────┼────┤ │ - * 3 keys │ 0 │ . │Entr│ - * └─────────┴────┴────┴ - * 21 total - */ - [0] = LAYOUT_numpad( - KC_ESC, KC_CALC, KC_PEQL, KC_DEL, - KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, - KC_P7, KC_P8, KC_P9, - KC_P4, KC_P5, KC_P6, KC_PPLS, - KC_P1, KC_P2, KC_P3, - KC_P0, KC_PDOT, KC_PENT - ), -}; diff --git a/keyboards/lotus/keymaps/numpad/keymap.c b/keyboards/lotus/keymaps/numpad/keymap.c new file mode 100644 index 0000000000..8c01431182 --- /dev/null +++ b/keyboards/lotus/keymaps/numpad/keymap.c @@ -0,0 +1,33 @@ +// Copyright 2022 Framework Computer +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +#define NUMPAD_ROWS 4 +#define NUMPAD_COLS 8 +const uint16_t PROGMEM keymaps[][NUMPAD_ROWS][NUMPAD_COLS] = { + /* + * ┌────┬────┬────┬────┐ + * 4 keys │Esc │Calc│ = │ <- │ + * ├────┼────┼────┼────┤ + * 4 keys │ Num│ / │ * │ - │ + * ├────┼────┼────┼────┤ + * 3 keys │ 7 │ 8 │ 9 │ │ + * ├────┼────┼────┤ │ + * 4 keys │ 4 │ 5 │ 6 │ + │ + * ├────┼────┼────┼────┤ + * 3 keys │ 1 │ 2 │ 3 │ │ + * ├────┴────┼────┤ │ + * 3 keys │ 0 │ . │Entr│ + * └─────────┴────┴────┴ + * 21 total + */ + [0] = LAYOUT_numpad( + KC_ESC, KC_CALC, KC_PEQL, KC_DEL, + KC_NUM, KC_PSLS, KC_PAST, KC_PMNS, + KC_P7, KC_P8, KC_P9, + KC_P4, KC_P5, KC_P6, KC_PPLS, + KC_P1, KC_P2, KC_P3, + KC_P0, KC_PDOT, KC_PENT + ), +};