add summer breeze
This commit is contained in:
parent
2666bd622c
commit
07d6a390d0
9 changed files with 193 additions and 0 deletions
24
app/boards/shields/summer_breeze/Kconfig.defconfig
Normal file
24
app/boards/shields/summer_breeze/Kconfig.defconfig
Normal file
|
@ -0,0 +1,24 @@
|
|||
|
||||
if SHIELD_SUMMER_BREEZE_LEFT
|
||||
|
||||
config ZMK_KEYBOARD_NAME
|
||||
default "SBreeze Left"
|
||||
|
||||
config ZMK_SPLIT_BLE_ROLE_CENTRAL
|
||||
default y
|
||||
|
||||
endif
|
||||
|
||||
if SHIELD_SUMMER_BREEZE_RIGHT
|
||||
|
||||
config ZMK_KEYBOARD_NAME
|
||||
default "SBreeze Right"
|
||||
|
||||
endif
|
||||
|
||||
if SHIELD_SUMMER_BREEZE_LEFT || SHIELD_SUMMER_BREEZE_RIGHT
|
||||
|
||||
config ZMK_SPLIT
|
||||
default y
|
||||
|
||||
endif
|
8
app/boards/shields/summer_breeze/Kconfig.shield
Normal file
8
app/boards/shields/summer_breeze/Kconfig.shield
Normal file
|
@ -0,0 +1,8 @@
|
|||
# Copyright (c) 2020 Pete Johanson
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
config SHIELD_SUMMER_BREEZE_LEFT
|
||||
def_bool $(shields_list_contains,summer_breeze_left)
|
||||
|
||||
config SHIELD_SUMMER_BREEZE_RIGHT
|
||||
def_bool $(shields_list_contains,summer_breeze_right)
|
0
app/boards/shields/summer_breeze/summer_breeze.conf
Normal file
0
app/boards/shields/summer_breeze/summer_breeze.conf
Normal file
54
app/boards/shields/summer_breeze/summer_breeze.dtsi
Normal file
54
app/boards/shields/summer_breeze/summer_breeze.dtsi
Normal file
|
@ -0,0 +1,54 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Pete Johanson
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include <dt-bindings/zmk/matrix_transform.h>
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zmk,kscan = &kscan0;
|
||||
zmk,matrix_transform = &default_transform;
|
||||
};
|
||||
|
||||
default_transform: keymap_transform_0 {
|
||||
compatible = "zmk,matrix-transform";
|
||||
columns = <9>;
|
||||
rows = <10>;
|
||||
|
||||
// | L00 | L01 | L02 | L03 | L04 | L05 | | R00 | R01 | R02 | R03 | R04 | R05 | MC0 | MC1 | MC2 |
|
||||
// | L10 | L11 | L12 | L13 | L14 | L15 | | R10 | R11 | R12 | R13 | R14 | R15 | MC3 | MC4 | MC5 |
|
||||
// | L20 | L21 | L22 | L23 | L24 | L25 | | R20 | R21 | R22 | R23 | R24 | R25 | | AUP | |
|
||||
// | L30 | L31 | L32 | L33 | L34 | L35 | | R30 | R31 | R32 | R33 | R34 | R35 | ALT | ADN | ART |
|
||||
// | LT0 | LT1 | LT2 | LT3 | RT0 | RT1 | RT2 | RT3
|
||||
|
||||
map = <
|
||||
RC(0,8) RC(0,7) RC(0,6) RC(0,5) RC(0,4) RC(0,3) RC(0,2) RC(0,1) RC(0,0) RC(5,0) RC(5,1) RC(5,2) RC(5,3) RC(5,4) RC(5,5) RC(5,6) RC(5,7) RC(5,8)
|
||||
RC(1,8) RC(1,7) RC(1,6) RC(1,5) RC(1,4) RC(1,3) RC(1,2) RC(1,1) RC(1,0) RC(6,0) RC(6,1) RC(6,2) RC(6,3) RC(6,4) RC(6,5) RC(6,6) RC(6,7) RC(6,8)
|
||||
RC(2,7) RC(2,5) RC(2,4) RC(2,3) RC(2,2) RC(2,1) RC(2,0) RC(7,0) RC(7,1) RC(7,2) RC(7,3) RC(7,4) RC(7,5) RC(7,7)
|
||||
RC(3,8) RC(3,7) RC(3,6) RC(3,5) RC(3,4) RC(3,3) RC(3,2) RC(3,1) RC(3,0) RC(8,0) RC(8,1) RC(8,2) RC(8,3) RC(8,4) RC(8,5) RC(8,6) RC(8,7) RC(8,8)
|
||||
RC(4,3) RC(4,2) RC(4,1) RC(4,0) RC(9,0) RC(9,1) RC(9,2) RC(9,3)
|
||||
>;
|
||||
};
|
||||
|
||||
kscan0: kscan {
|
||||
compatible = "zmk,kscan-gpio-matrix";
|
||||
label = "KSCAN";
|
||||
|
||||
diode-direction = "col2row";
|
||||
|
||||
col-gpios
|
||||
= <&pro_micro_d 16 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 2 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 3 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 4 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 5 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 6 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 7 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 8 GPIO_ACTIVE_HIGH>
|
||||
, <&pro_micro_d 9 GPIO_ACTIVE_HIGH>
|
||||
;
|
||||
|
||||
};
|
||||
};
|
66
app/boards/shields/summer_breeze/summer_breeze.keymap
Normal file
66
app/boards/shields/summer_breeze/summer_breeze.keymap
Normal file
|
@ -0,0 +1,66 @@
|
|||
/*
|
||||
* Copyright (c) 2020 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/ext_power.h>
|
||||
|
||||
/ {
|
||||
keymap {
|
||||
compatible = "zmk,keymap";
|
||||
|
||||
default_layer {
|
||||
|
||||
// Ref: https://zmkfirmware.dev/docs/codes/
|
||||
|
||||
// ----------------------------------------------------------------------------------------------------------------// | F1 | F2 | F3 |// | F1 | F2 | F3 | | ESC | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | DEL | | - | = |mo(2) |
|
||||
// | F4 | F5 | F6 | | TAB | Q | W | E | R | T | | Y | U | I | O | P | ` | | [ | ] | \ |
|
||||
// | | W | | | CAPS | A | S | D | F | G | | H | J | K | L | ; | ' | | | UP | |
|
||||
// | A | S | D | | SHIFT | Z | X | C | V | B | | N | M | , | . | / | BSPC | | L | DN | R |
|
||||
// | CTRL | GUI | ALT | SPACE | | ENTER |SHIFT | CTRL | mo(1) |
|
||||
bindings = <
|
||||
&kp F1 &kp F2 &kp F3 &gresc &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp DEL &kp MINUS &kp EQUAL &mo 2
|
||||
&kp F4 &kp F5 &kp F6 &kp TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp GRAVE &kp LBKT &kp RBKT &kp BSLH
|
||||
&kp W &kp CAPS &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp APOS &kp UP
|
||||
&kp A &kp S &kp D &kp RSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp BSPC &kp LEFT &kp DOWN &kp RIGHT
|
||||
&kp LCTRL &kp LGUI &kp LALT &kp SPACE &kp RET &mo 1 &kp RCTRL &mo 1
|
||||
>;
|
||||
};
|
||||
|
||||
layer1 {
|
||||
// ----------------------------------------------------------------------------------------------------------------------------------
|
||||
// | | | | | BTCLR | BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | | | | | |
|
||||
// | | | | | F1 | F2 | F3 | F4 | F5 | F6 | | F7 | F8 | F9 | F10 | F11 | F12 | | | Mute | Play |
|
||||
// | | | | | ` | ! | @ | # | $ | % | | ^ | & | * | ( | ) | ~ | | | Vol+ | |
|
||||
// | | | | | | | | | | | | | _ | + | { | } | "|" | | Prev | Vol- | Next |
|
||||
// | | | | | | | | | |
|
||||
bindings = <
|
||||
&trans &trans &trans &bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &trans &trans &trans &kp MINUS &kp EQUAL &trans &trans &trans &trans
|
||||
&trans &trans &trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp LBKT &kp RBKT &kp BSLH &trans &kp C_MUTE &kp C_PLAY_PAUSE
|
||||
&trans &kp GRAVE &kp EXCL &kp AT &kp HASH &kp DOLLAR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &kp TILDE &kp C_VOL_UP
|
||||
&trans &trans &trans &trans &ext_power EP_ON &ext_power EP_OFF &ext_power EP_TOG &trans &trans &trans &kp MINUS &kp KP_PLUS &kp LBRC &kp RBRC &kp RSHFT &kp C_PREV &kp C_VOL_DN &kp C_NEXT
|
||||
&trans &trans &trans &trans &trans &trans &trans &trans
|
||||
>;
|
||||
};
|
||||
|
||||
layer2 {
|
||||
// ----------------------------------------------------------------------------------------------------------------------------------
|
||||
// | | | | | | | | | | | | | | | | | | | | | |
|
||||
// | | | | | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | | | | | |
|
||||
// | | | | | F1 | F2 | F3 | F4 | F5 | F6 | | | <- | ^ | v | -> | | | | | |
|
||||
// | | | | | F7 | F8 | F9 | F10 | F11 | F12 | | + | - | = | [ | ] | \ | | | | |
|
||||
// | | | | | | | | | |
|
||||
bindings = <
|
||||
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
|
||||
&trans &trans &trans &kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &trans &trans &trans &trans
|
||||
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &trans &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &trans
|
||||
&trans &trans &trans &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &kp KP_PLUS &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH &trans &trans &trans
|
||||
&trans &trans &trans &trans &trans &trans &trans &trans
|
||||
>;
|
||||
};
|
||||
};
|
||||
};
|
1
app/boards/shields/summer_breeze/summer_breeze_left.conf
Normal file
1
app/boards/shields/summer_breeze/summer_breeze_left.conf
Normal file
|
@ -0,0 +1 @@
|
|||
# Empty
|
18
app/boards/shields/summer_breeze/summer_breeze_left.overlay
Normal file
18
app/boards/shields/summer_breeze/summer_breeze_left.overlay
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Pete Johanson
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "summer_breeze.dtsi"
|
||||
|
||||
&kscan0 {
|
||||
row-gpios
|
||||
= <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_a 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_a 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_a 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_d 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
;
|
||||
|
||||
};
|
|
@ -0,0 +1 @@
|
|||
# Empty
|
21
app/boards/shields/summer_breeze/summer_breeze_right.overlay
Normal file
21
app/boards/shields/summer_breeze/summer_breeze_right.overlay
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2020 Pete Johanson
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*/
|
||||
|
||||
#include "summer_breeze.dtsi"
|
||||
|
||||
&default_transform {
|
||||
row-offset = <5>;
|
||||
};
|
||||
|
||||
&kscan0 {
|
||||
row-gpios
|
||||
= <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_a 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_a 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_a 0 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
, <&pro_micro_d 15 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||
;
|
||||
};
|
Loading…
Add table
Reference in a new issue