diff options
author | Vino Rodrigues <366673+vinorodrigues@users.noreply.github.com> | 2023-09-09 20:17:09 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-09 11:17:09 +0100 |
commit | ec09c03b64b612bbc65d4ad155e9f513bf5a7008 (patch) | |
tree | 507998a6d39665ca5f1be05107f4a09a25e4f2ed /keyboards/binepad/pixie/keymaps | |
parent | 4875bcecc2c3c66b4b259e50d6d2cf70603b3173 (diff) |
[Keyboard] Add Binepad Pixie (#21524)
* Add Binepad Pixie
* Post waffle87 and drashna review recommendations applied
* Post-drashna code review suggestions applied
Co-authored-by: Drashna Jaelre <drashna@live.com>
* post zvecr review
---------
Co-authored-by: Drashna Jaelre <drashna@live.com>
Diffstat (limited to 'keyboards/binepad/pixie/keymaps')
-rw-r--r-- | keyboards/binepad/pixie/keymaps/default/keymap.c | 22 | ||||
-rw-r--r-- | keyboards/binepad/pixie/keymaps/default/rules.mk | 2 | ||||
-rw-r--r-- | keyboards/binepad/pixie/keymaps/via/keymap.c | 22 | ||||
-rw-r--r-- | keyboards/binepad/pixie/keymaps/via/rules.mk | 3 |
4 files changed, 49 insertions, 0 deletions
diff --git a/keyboards/binepad/pixie/keymaps/default/keymap.c b/keyboards/binepad/pixie/keymaps/default/keymap.c new file mode 100644 index 0000000000..b49c4db6de --- /dev/null +++ b/keyboards/binepad/pixie/keymaps/default/keymap.c @@ -0,0 +1,22 @@ +// Copyright 2023 Binepad (@binpad) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( + KC_MUTE, KC_MPLY, + KC_MPRV, KC_MNXT + ) +}; + +#if defined(ENCODER_MAP_ENABLE) + +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { + [0] = { + ENCODER_CCW_CW(KC_VOLD, KC_VOLU), + ENCODER_CCW_CW(KC_WH_U, KC_WH_D) + } +}; + +#endif diff --git a/keyboards/binepad/pixie/keymaps/default/rules.mk b/keyboards/binepad/pixie/keymaps/default/rules.mk new file mode 100644 index 0000000000..34789bf172 --- /dev/null +++ b/keyboards/binepad/pixie/keymaps/default/rules.mk @@ -0,0 +1,2 @@ + +ENCODER_MAP_ENABLE = yes diff --git a/keyboards/binepad/pixie/keymaps/via/keymap.c b/keyboards/binepad/pixie/keymaps/via/keymap.c new file mode 100644 index 0000000000..b49c4db6de --- /dev/null +++ b/keyboards/binepad/pixie/keymaps/via/keymap.c @@ -0,0 +1,22 @@ +// Copyright 2023 Binepad (@binpad) +// SPDX-License-Identifier: GPL-2.0-or-later + +#include QMK_KEYBOARD_H + +const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { + [0] = LAYOUT( + KC_MUTE, KC_MPLY, + KC_MPRV, KC_MNXT + ) +}; + +#if defined(ENCODER_MAP_ENABLE) + +const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][NUM_DIRECTIONS] = { + [0] = { + ENCODER_CCW_CW(KC_VOLD, KC_VOLU), + ENCODER_CCW_CW(KC_WH_U, KC_WH_D) + } +}; + +#endif diff --git a/keyboards/binepad/pixie/keymaps/via/rules.mk b/keyboards/binepad/pixie/keymaps/via/rules.mk new file mode 100644 index 0000000000..82b46f5873 --- /dev/null +++ b/keyboards/binepad/pixie/keymaps/via/rules.mk @@ -0,0 +1,3 @@ + +VIA_ENABLE = yes +ENCODER_MAP_ENABLE = yes |