Skip to content

Commit

Permalink
chore: update pre v3 (KinesisCorporation#4)
Browse files Browse the repository at this point in the history
* chore: update pre v3

* feat: readd key bindings
  • Loading branch information
sanderdrummer authored Jun 30, 2023
1 parent 12b19c4 commit 270d7c9
Show file tree
Hide file tree
Showing 9 changed files with 88 additions and 225 deletions.
9 changes: 9 additions & 0 deletions bindings.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fn {
bindings = <
&trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &none &trans &trans &trans &trans &none &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};
149 changes: 69 additions & 80 deletions config/adv360.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -8,65 +8,60 @@
combos {
compatible = "zmk,combos";
lctrl {
timeout-ms = <60>;
timeout-ms = <30>;
key-positions = <29 30>;
bindings = <&kp LCTRL>;
};
lalt {
timeout-ms = <60>;
timeout-ms = <30>;
key-positions = <30 31>;
bindings = <&kp LALT>;
};
lcmd {
timeout-ms = <60>;
timeout-ms = <30>;
key-positions = <31 32>;
bindings = <&kp LEFT_COMMAND>;
};
laltcmd {
timeout-ms = <60>;
timeout-ms = <30>;
key-positions = <30 31 32>;
bindings = <&kp LA(LEFT_COMMAND)>;
};
lctrlcmd {
timeout-ms = <60>;
timeout-ms = <30>;
key-positions = <29 31 32>;
bindings = <&kp LC(LEFT_COMMAND)>;
};
rctrl {
timeout-ms = <60>;
key-positions = <46 45>;
timeout-ms = <30>;
key-positions = <44 43>;
bindings = <&kp RCTRL>;
};
ralt {
timeout-ms = <60>;
key-positions = <45 44>;
timeout-ms = <30>;
key-positions = <43 42>;
bindings = <&kp RALT>;
};
rcmd {
timeout-ms = <60>;
key-positions = <44 43>;
timeout-ms = <30>;
key-positions = <42 41>;
bindings = <&kp RIGHT_COMMAND>;
};
creturn {
timeout-ms = <60>;
key-positions = <43 45>;
timeout-ms = <30>;
key-positions = <41 43>;
bindings = <&kp RETURN>;
};
ctab {
timeout-ms = <60>;
timeout-ms = <30>;
key-positions = <30 32>;
bindings = <&kp TAB>;
};
escr {
timeout-ms = <60>;
timeout-ms = <30>;
key-positions = <29 32>;
bindings = <&kp ESC>;
};
eq {
timeout-ms = <60>;
key-positions = <46 43>;
bindings = <&kp EQUAL>;
};
};
behaviors {
#include "macros.dtsi"
Expand All @@ -87,65 +82,59 @@
compatible = "zmk,keymap";


default_layer {
bindings = <
&kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &tog 1 &mo 3 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp MINUS
&kp TAB &kp Q &kp W &kp E &kp R &kp T &none &none &kp Y &kp U &kp I &kp O &kp P &kp BSLH
&none &kp A &kp S &kp D &kp F &kp G &trans &kp LCTRL &kp LALT &none &none &kp LGUI &kp RCTRL &none &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&none &kp Z &kp X &lt 5 C &lt 1 V &kp B &none &none &kp HOME &none &none &kp PG_UP &none &none &kp N &lt 2 M &lt 4 COMMA &kp DOT &kp FSLH &none
&none &none &none &none &none &kp SPACE &kp LEFT_SHIFT &kp END &kp RETURN &kp RIGHT_SHIFT &kp BACKSPACE &none &none &none &none &none

>;
};

layer_keypad {
bindings = <
&kp EQUAL &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &trans &mo 3 &kp N6 &kp KP_NUM &kp KP_EQUAL &kp KP_DIVIDE &kp KP_MULTIPLY &kp MINUS
&kp TAB &kp Q &kp W &kp E &kp R &kp T &none &none &kp Y &kp N7 &kp N8 &kp N9 &kp N0 &kp BSLH
&kp ESC &kp A &kp S &kp D &kp F &kp G &none &kp LCTRL &kp LALT &none &none &kp LGUI &kp RCTRL &none &kp H &kp N4 &kp N5 &kp N6 &kp KP_PLUS &kp SQT
&kp LSHFT &kp LCTRL &kp LEFT_ALT &kp LEFT_COMMAND &kp V &kp B &none &none &kp HOME &none &none &kp PG_UP &none &none &kp N &kp N1 &kp N2 &kp N3 &kp KP_ENTER &kp RSHFT
&mo 2 &kp GRAVE &kp CAPS &kp LEFT &kp RIGHT &kp SPACE &kp DEL &kp END &kp PG_DN &kp ENTER &kp KP_N0 &kp UP &kp DOWN &kp KP_DOT &kp RBKT &mo 2
>;
};

layer_fn {
bindings = <
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &tog 1 &mo 3 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
&trans &kp UNDERSCORE &kp DOUBLE_QUOTES &kp LEFT_BRACE &kp RIGHT_BRACE &kp PIPE &none &none &trans &trans &trans &trans &trans &trans
&trans &kp MINUS &kp SINGLE_QUOTE &kp LEFT_PARENTHESIS &kp RIGHT_PARENTHESIS &kp BACKSLASH &none &trans &trans &none &none &trans &trans &none &trans &trans &trans &trans &trans &trans
&trans &kp TILDE &kp GRAVE &kp LEFT_BRACKET &kp RIGHT_BRACKET &kp PLUS &none &none &trans &none &none &trans &none &none &trans &trans &kp LEFT_COMMAND &kp LALT &kp LCTRL &kp LSHFT
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};

layer_mod {
bindings = <
&none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &trans &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none
&none &none &none &none &none &none &bootloader &bootloader &none &none &none &none &none &none
&none &none &none &none &none &none &rgb_ug RGB_MEFS_CMD 5 &bt BT_CLR &none &none &none &bt BT_CLR &bt BT_CLR &rgb_ug RGB_MEFS_CMD 5 &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none &none &none &none &none &none &none &none &none &none &none
&none &none &none &bl BL_INC &bl BL_DEC &rgb_ug RGB_TOG &bl BL_TOG &none &none &bl BL_TOG &rgb_ug RGB_TOG &bl BL_INC &bl BL_DEC &none &none &none
>;
};

layer_Shifted {
bindings = <
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &kp AMPERSAND &kp STAR &none &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &kp DOLLAR &kp PERCENT &kp CARET &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &kp EXCLAMATION &kp AT_SIGN &kp HASH &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};

layer_angulars {
bindings = <
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &trans &trans &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
&trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &none &trans &trans &none &none &trans &trans &none &trans &kp EQUAL &kp GT &kp COLON &trans &trans
&trans &trans &trans &trans &trans &trans &none &none &trans &none &none &trans &none &none &trans &kp LT &kp GT &kp SLASH &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};
default_layer {
bindings = <
&none &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &none &mo 1 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &none
&none &kp Q &kp W &kp E &kp R &kp T &none &none &kp Y &kp U &kp I &kp O &kp P &none
&none &kp A &kp S &kp D &kp F &kp G &none &kp LCTRL &kp LALT &kp LGUI &kp RCTRL &none &kp H &kp J &kp K &kp L &kp SEMI &none
&none &kp Z &kp X &lt 5 C &lt 2 V &kp B &kp HOME &kp PG_UP &kp N &lt 4 M &lt 3 COMMA &kp DOT &kp FSLH &none
&none &none &none &none &none &kp SPACE &kp LSHFT &kp END &kp PG_DN &kp RSHFT &kp BSPC &none &none &none &none &none
>;
};
mod {
bindings = <
&none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &none &trans &none &none &none &none &none &none
&none &none &none &none &none &none &bootloader &bootloader &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &bt BT_CLR &none &rgb_ug RGB_MEFS_CMD 5 &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &none &none &none &none &none
&none &none &none &none &none &none &none &none &none &bl BL_TOG &rgb_ug RGB_TOG &bl BL_INC &bl BL_DEC &none &none &none
>;
};
numbers {
bindings = <
&trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &none &none &trans &kp N7 &kp N8 &kp N9 &trans &trans
&trans &trans &trans &trans &trans &trans &none &trans &trans &trans &trans &none &trans &kp N4 &kp N5 &kp N6 &trans &trans
&kp LSHFT &kp LCTRL &kp LALT &kp LGUI &trans &trans &trans &trans &trans &kp N1 &kp N2 &kp N3 &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp N0 &trans &trans &trans &trans &trans
>;
};
brackets {
bindings = <
&trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans
&trans &kp UNDER &kp DQT &kp LBRC &kp RBRC &kp PIPE &none &none &trans &trans &trans &trans &trans &trans
&trans &kp MINUS &kp SQT &kp LPAR &kp RPAR &kp NUBS &none &trans &trans &trans &trans &none &trans &trans &trans &trans &trans &trans
&trans &kp TILDE &kp GRAVE &kp LBKT &kp RBKT &kp PLUS &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};
symbols {
bindings = <
&trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans
&trans &kp AMPERSAND &kp STAR &kp PLUS &trans &trans &none &none &trans &trans &trans &trans &trans &trans
&trans &kp DOLLAR &kp PERCENT &kp CARET &trans &none &trans &trans &trans &trans &none &trans &trans &trans &trans &trans &trans
&trans &kp EXCLAMATION &kp AT_SIGN &kp HASH &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};
web {
bindings = <
&trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &none &none &trans &trans &trans &trans &trans &trans
&trans &trans &trans &trans &trans &trans &none &trans &trans &trans &trans &none &trans &kp EQUAL &kp GT &kp COLON &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &kp LT &kp GT &kp SLASH &trans &trans
&trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans
>;
};
};
};
12 changes: 6 additions & 6 deletions config/boards/arm/adv360/adv360.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,16 @@

default_transform: keymap_transform_0 {
compatible = "zmk,matrix-transform";
columns = <22>;
columns = <20>;
rows = <5>;


map = <
RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5) RC(4,6) RC(4,15) RC(4,16) RC(4,17) RC(4,18) RC(4,19) RC(4,20) RC(4,21)
RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,15) RC(3,16) RC(3,17) RC(3,18) RC(3,19) RC(3,20) RC(3,21)
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,8) RC(2,9) RC(2,10) RC(2,11) RC(2,12) RC(2,13) RC(2,15) RC(2,16) RC(2,17) RC(2,18) RC(2,19) RC(2,20) RC(2,21)
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,7) RC(1,8) RC(1,9) RC(1,10) RC(1,11) RC(1,12) RC(1,13) RC(1,14) RC(1,16) RC(1,17) RC(1,18) RC(1,19) RC(1,20) RC(1,21)
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,7) RC(0,8) RC(0,9) RC(0,12) RC(0,13) RC(0,14) RC(0,17) RC(0,18) RC(0,19) RC(0,20) RC(0,21)
RC(4,0) RC(4,1) RC(4,2) RC(4,3) RC(4,4) RC(4,5) RC(4,6) RC(4,13) RC(4,14) RC(4,15) RC(4,16) RC(4,17) RC(4,18) RC(4,19)
RC(3,0) RC(3,1) RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,13) RC(3,14) RC(3,15) RC(3,16) RC(3,17) RC(3,18) RC(3,19)
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,8) RC(2,9) RC(2,10) RC(2,11) RC(2,13) RC(2,14) RC(2,15) RC(2,16) RC(2,17) RC(2,18) RC(2,19)
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,9) RC(1,10) RC(1,14) RC(1,15) RC(1,16) RC(1,17) RC(1,18) RC(1,19)
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,7) RC(0,8) RC(0,9) RC(0,10) RC(0,11) RC(0,12) RC(0,15) RC(0,16) RC(0,17) RC(0,18) RC(0,19)

>;
};
Expand Down
1 change: 0 additions & 1 deletion config/boards/arm/adv360/adv360_left.dts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
, <&gpio1 9 GPIO_ACTIVE_HIGH>
, <&gpio0 12 GPIO_ACTIVE_HIGH>
, <&gpio0 7 GPIO_ACTIVE_HIGH>
, <&gpio0 5 GPIO_ACTIVE_HIGH>
;
};

Expand Down
1 change: 1 addition & 0 deletions config/boards/arm/adv360/adv360_left_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ CONFIG_USB_DEVICE_MANUFACTURER="Kinesis Corporation"
CONFIG_BT_DIS_MANUF="Kinesis Corporation"

CONFIG_BUILD_OUTPUT_UF2=y
CONFIG_ZMK_BATTERY_REPORT_INTERVAL=9999999
5 changes: 2 additions & 3 deletions config/boards/arm/adv360/adv360_right.dts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
;

col-gpios
= <&gpio1 14 GPIO_ACTIVE_HIGH>
, <&gpio0 12 GPIO_ACTIVE_HIGH>
= <&gpio0 12 GPIO_ACTIVE_HIGH>
, <&gpio1 9 GPIO_ACTIVE_HIGH>
, <&gpio0 7 GPIO_ACTIVE_HIGH>
, <&gpio1 11 GPIO_ACTIVE_HIGH>
Expand All @@ -50,5 +49,5 @@
};

&default_transform {
col-offset = <11>;
col-offset = <10>;
};
1 change: 1 addition & 0 deletions config/boards/arm/adv360/adv360_right_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,4 @@ CONFIG_USB_DEVICE_PID=0x0362
CONFIG_USB_DEVICE_MANUFACTURER="Kinesis Corporation"

CONFIG_BUILD_OUTPUT_UF2=y
CONFIG_ZMK_BATTERY_REPORT_INTERVAL=9999999
Loading

0 comments on commit 270d7c9

Please sign in to comment.