Merge 4d882b656b
into 0f972f1cc3
This commit is contained in:
commit
8bab0991fc
6 changed files with 121 additions and 0 deletions
9
app/boards/shields/babyvble/Kconfig.defconfig
Normal file
9
app/boards/shields/babyvble/Kconfig.defconfig
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Copyright (c) 2021 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
if SHIELD_BABYVBLE
|
||||||
|
|
||||||
|
config ZMK_KEYBOARD_NAME
|
||||||
|
default "BabyvBle"
|
||||||
|
|
||||||
|
endif
|
5
app/boards/shields/babyvble/Kconfig.shield
Normal file
5
app/boards/shields/babyvble/Kconfig.shield
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Copyright (c) 2021 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
config SHIELD_BABYVBLE
|
||||||
|
def_bool $(shields_list_contains,babyvble)
|
0
app/boards/shields/babyvble/babyvble.conf
Normal file
0
app/boards/shields/babyvble/babyvble.conf
Normal file
58
app/boards/shields/babyvble/babyvble.keymap
Normal file
58
app/boards/shields/babyvble/babyvble.keymap
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2021 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <behaviors.dtsi>
|
||||||
|
#include <dt-bindings/zmk/keys.h>
|
||||||
|
#include <dt-bindings/zmk/bt.h>
|
||||||
|
#include <dt-bindings/zmk/mouse.h>
|
||||||
|
#include <dt-bindings/zmk/outputs.h>
|
||||||
|
|
||||||
|
#define DEFAULT 0
|
||||||
|
#define NUMBS 1
|
||||||
|
#define FUNC 2
|
||||||
|
#define MOUSE 3
|
||||||
|
|
||||||
|
/ {
|
||||||
|
keymap {
|
||||||
|
compatible = "zmk,keymap";
|
||||||
|
|
||||||
|
default_layer {
|
||||||
|
bindings = <
|
||||||
|
&kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
|
||||||
|
&kp CLCK &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp RET
|
||||||
|
&kp LSHIFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
|
||||||
|
&kp LCTRL &kp LGUI &kp LALT &mo MOUSE &mo NUMBS &mo NUMBS &kp SPACE &kp SPACE &mo FUNC &kp LALT &kp RCTRL &kp RGUI
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
numbers_layer {
|
||||||
|
bindings = <
|
||||||
|
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
|
||||||
|
&kp C_MUTE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp RET
|
||||||
|
&kp LSHIFT &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp ASTERISK &kp LPAR &kp RPAR &kp RSHFT
|
||||||
|
&kp LCTRL &kp LGUI &kp LALT &trans &trans &trans &trans &trans &trans &kp LALT &kp RGUI &kp RCTRL
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
func_layer {
|
||||||
|
bindings = <
|
||||||
|
&kp ESC &trans &kp PG_UP &trans &trans &trans &trans &trans &kp UP &trans &trans &kp DEL
|
||||||
|
&kp TAB &kp HOME &kp PG_DN &kp C_VOL_UP &kp C_VOLUME_DOWN &kp MINUS &kp EQUAL &kp LEFT &kp DOWN &kp RIGHT &kp SQT &kp GRAVE
|
||||||
|
&kp LSHIFT &kp C_PP &trans &trans &trans &kp LBKT &kp RBKT &trans &kp COMMA &kp DOT &kp BSLH &kp RSHFT
|
||||||
|
&kp LCTRL &kp LGUI &kp LALT &trans &trans &trans &trans &trans &trans &kp LALT &kp RGUI &kp RCTRL
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
mouse_layer {
|
||||||
|
bindings = <
|
||||||
|
&kp TAB &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
&kp CLCK &trans &trans &trans &trans &bt BT_PRV &out OUT_TOG &trans &trans &trans &trans &trans
|
||||||
|
&kp LSHIFT &trans &trans &trans &trans &bt BT_NXT &bt BT_CLR &trans &trans &trans &trans &trans
|
||||||
|
&kp LCTRL &kp LGUI &kp LALT &trans &trans &trans &trans &trans &trans &kp LALT &kp RGUI &trans
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
41
app/boards/shields/babyvble/babyvble.overlay
Normal file
41
app/boards/shields/babyvble/babyvble.overlay
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2021 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <dt-bindings/zmk/matrix_transform.h>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zmk,kscan = &kscan0;
|
||||||
|
};
|
||||||
|
|
||||||
|
kscan0: kscan {
|
||||||
|
compatible = "zmk,kscan-gpio-matrix";
|
||||||
|
label = "KSCAN";
|
||||||
|
|
||||||
|
diode-direction = "col2row";
|
||||||
|
row-gpios
|
||||||
|
= <&pro_micro 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro 16 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro 10 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
;
|
||||||
|
|
||||||
|
col-gpios
|
||||||
|
= <&pro_micro 1 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 0 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 4 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 5 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 6 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 7 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 14 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 15 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 18 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 19 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 20 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro 21 GPIO_ACTIVE_HIGH>
|
||||||
|
;
|
||||||
|
};
|
||||||
|
};
|
8
app/boards/shields/babyvble/babyvble.zmk.yml
Normal file
8
app/boards/shields/babyvble/babyvble.zmk.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
file_format: "1"
|
||||||
|
id: babyvble
|
||||||
|
name: BabyvBle
|
||||||
|
type: shield
|
||||||
|
url: https://github.com/MakerJake01/MakerJakes-keyboards/tree/main/BabyvBle
|
||||||
|
requires: [pro_micro]
|
||||||
|
features:
|
||||||
|
- keys
|
Loading…
Add table
Reference in a new issue