lotus: Split off numpad

Signed-off-by: Daniel Schaefer <dhs@frame.work>
This commit is contained in:
Daniel Schaefer 2022-12-23 09:45:33 +08:00
parent a3f34ad6d2
commit 0d9eae995f
3 changed files with 36 additions and 29 deletions

View File

@ -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
#

View File

@ -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
),
};

View File

@ -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
),
};