[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>
This commit is contained in:
parent
4875bcecc2
commit
ec09c03b64
8 changed files with 132 additions and 0 deletions
6
keyboards/binepad/pixie/config.h
Normal file
6
keyboards/binepad/pixie/config.h
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
// Copyright 2023 binepad (@binepad)
|
||||||
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
#define ENCODER_DEFAULT_POS 0x3 // enable 1:1 resolution
|
49
keyboards/binepad/pixie/info.json
Normal file
49
keyboards/binepad/pixie/info.json
Normal file
|
@ -0,0 +1,49 @@
|
||||||
|
{
|
||||||
|
"manufacturer": "binepad",
|
||||||
|
"keyboard_name": "PIXIE",
|
||||||
|
"url": "http://binepad.com",
|
||||||
|
"maintainer": "binepad",
|
||||||
|
"processor": "RP2040",
|
||||||
|
"bootloader": "rp2040",
|
||||||
|
"diode_direction": "COL2ROW",
|
||||||
|
"usb": {
|
||||||
|
"vid": "0x4249",
|
||||||
|
"pid": "0x5078",
|
||||||
|
"device_version": "1.0.0"
|
||||||
|
},
|
||||||
|
"features": {
|
||||||
|
"bootmagic": true,
|
||||||
|
"command": false,
|
||||||
|
"console": false,
|
||||||
|
"extrakey": true,
|
||||||
|
"mousekey": true,
|
||||||
|
"nkro": false,
|
||||||
|
"encoder": true
|
||||||
|
},
|
||||||
|
"matrix_pins": {
|
||||||
|
"cols": ["GP19", "GP4"],
|
||||||
|
"rows": ["GP28", "GP5"]
|
||||||
|
},
|
||||||
|
"encoder": {
|
||||||
|
"rotary": [
|
||||||
|
{
|
||||||
|
"pin_a": "GP18",
|
||||||
|
"pin_b": "GP17"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"pin_a": "GP20",
|
||||||
|
"pin_b": "GP21"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"layouts": {
|
||||||
|
"LAYOUT": {
|
||||||
|
"layout": [
|
||||||
|
{ "matrix": [0, 0], "x": 0, "y": 0 },
|
||||||
|
{ "matrix": [0, 1], "x": 1.25, "y": 0 },
|
||||||
|
{ "matrix": [1, 0], "x": 0, "y": 1.25 },
|
||||||
|
{ "matrix": [1, 1], "x": 1.25, "y": 1.25 }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
22
keyboards/binepad/pixie/keymaps/default/keymap.c
Normal file
22
keyboards/binepad/pixie/keymaps/default/keymap.c
Normal file
|
@ -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
|
2
keyboards/binepad/pixie/keymaps/default/rules.mk
Normal file
2
keyboards/binepad/pixie/keymaps/default/rules.mk
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
|
||||||
|
ENCODER_MAP_ENABLE = yes
|
22
keyboards/binepad/pixie/keymaps/via/keymap.c
Normal file
22
keyboards/binepad/pixie/keymaps/via/keymap.c
Normal file
|
@ -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
|
3
keyboards/binepad/pixie/keymaps/via/rules.mk
Normal file
3
keyboards/binepad/pixie/keymaps/via/rules.mk
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
|
||||||
|
VIA_ENABLE = yes
|
||||||
|
ENCODER_MAP_ENABLE = yes
|
27
keyboards/binepad/pixie/readme.md
Normal file
27
keyboards/binepad/pixie/readme.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# BINEPAD PIXIE
|
||||||
|
|
||||||
|
![BINEPAD PIXIE](https://i.imgur.com/OnQnkdUh.jpeg)
|
||||||
|
|
||||||
|
*A 2x2 macropad with 2x rotary encoders*
|
||||||
|
|
||||||
|
* Keyboard Maintainer: [binepad](https://github.com/binepad)
|
||||||
|
* Hardware Supported: BINPAD PIXIE
|
||||||
|
* Hardware Availability: [binepad.com](https://www.binepad.com/pixie)
|
||||||
|
|
||||||
|
Make example for this keyboard (after setting up your build environment):
|
||||||
|
|
||||||
|
make binepad/pixie:default
|
||||||
|
|
||||||
|
Flashing example for this keyboard:
|
||||||
|
|
||||||
|
make binepad/pixie:default:flash
|
||||||
|
|
||||||
|
See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).
|
||||||
|
|
||||||
|
## Bootloader
|
||||||
|
|
||||||
|
Enter the bootloader in 3 ways:
|
||||||
|
|
||||||
|
* **Bootmagic reset**: Hold down the key at (010) in the matrix (the bottom left key) and plug in the keyboard
|
||||||
|
* **Physical reset button**: Briefly press the PCB button located on the back of the PCB
|
||||||
|
* **Keycode in layout**: Press the key mapped to `QK_BOOT` or `RESET` if it is available
|
1
keyboards/binepad/pixie/rules.mk
Normal file
1
keyboards/binepad/pixie/rules.mk
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# This file intentionally left blank
|
Loading…
Reference in a new issue