forked from Eloy98/zmk-for-skeletyl-hotswap
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 80750cb
Showing
18 changed files
with
505 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
on: [push, pull_request, workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# This file generates the GitHub Actions matrix | ||
# For simple board + shield combinations, add them | ||
# to the top level board and shield arrays, for more | ||
# control, add individual board + shield combinations to | ||
# the `include` property, e.g: | ||
# | ||
# board: [ "nice_nano_v2" ] | ||
# shield: [ "corne_left", "corne_right" ] | ||
# include: | ||
# - board: bdn9_rev2 | ||
# - board: nice_nano_v2 | ||
# shield: reviung41 | ||
# | ||
--- | ||
include: | ||
- board: nice_nano_v2 | ||
shield: cygnus_left | ||
- board: nice_nano_v2 | ||
shield: cygnus_right | ||
- board: nice_nano_v2 | ||
shield: settings_reset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright (c) 2020 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
if SHIELD_CYGNUS_LEFT | ||
|
||
config ZMK_KEYBOARD_NAME | ||
default "Cygnus" | ||
|
||
config ZMK_SPLIT_BLE_ROLE_CENTRAL | ||
default y | ||
|
||
endif | ||
|
||
if SHIELD_CYGNUS_LEFT || SHIELD_CYGNUS_RIGHT | ||
|
||
config ZMK_SPLIT | ||
default y | ||
|
||
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Copyright (c) 2020 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT | ||
|
||
config SHIELD_CYGNUS_LEFT | ||
def_bool $(shields_list_contains,cygnus_left) | ||
|
||
config SHIELD_CYGNUS_RIGHT | ||
def_bool $(shields_list_contains,cygnus_right) |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright (c) 2020 The ZMK Contributors | ||
* | ||
* 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 = <10>; | ||
rows = <4>; | ||
map = < | ||
RC(0,0) RC(0,1) RC(0,2) RC(0,3) RC(0,4) RC(0,5) RC(0,6) RC(0,7) RC(0,8) RC(0,9) | ||
RC(1,0) RC(1,1) RC(1,2) RC(1,3) RC(1,4) RC(1,5) RC(1,6) RC(1,7) RC(1,8) RC(1,9) | ||
RC(2,0) RC(2,1) RC(2,2) RC(2,3) RC(2,4) RC(2,5) RC(2,6) RC(2,7) RC(2,8) RC(2,9) | ||
RC(3,2) RC(3,3) RC(3,0) RC(3,9) RC(3,6) RC(3,7) | ||
>; | ||
}; | ||
|
||
kscan0: kscan { | ||
compatible = "zmk,kscan-gpio-matrix"; | ||
label = "KSCAN"; | ||
diode-direction = "col2row"; | ||
row-gpios | ||
= <&pro_micro 18 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> | ||
, <&pro_micro 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> | ||
, <&pro_micro 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> | ||
, <&pro_micro 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)> | ||
; | ||
}; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
/* | ||
* 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> | ||
|
||
|
||
&mt { | ||
tapping-term-ms = <200>; | ||
flavor = "tap-preferred"; | ||
}; | ||
&sk { | ||
release-after-ms = <2000>; | ||
quick-release; | ||
}; | ||
|
||
|
||
/ { | ||
combos { | ||
compatible = "zmk,combos"; | ||
combo_esc { | ||
timeout-ms = <50>; | ||
key-positions = <1 2>; | ||
bindings = <&kp ESC>; | ||
}; | ||
combo_tab { | ||
timeout-ms = <50>; | ||
key-positions = <11 12>; | ||
bindings = <&kp TAB>; | ||
}; | ||
}; | ||
|
||
behaviors { | ||
hm: homerow_mods { | ||
compatible = "zmk,behavior-hold-tap"; | ||
label = "HOMEROW_MODS"; | ||
#binding-cells = <2>; | ||
tapping-term-ms = <240>; | ||
quick_tap_ms = <0>; | ||
flavor = "tap-preferred"; | ||
bindings = <&kp>, <&kp>; | ||
}; | ||
hs: homerow_shifts { | ||
compatible = "zmk,behavior-hold-tap"; | ||
label = "HOMEROW_SHIFTS"; | ||
#binding-cells = <2>; | ||
tapping-term-ms = <150>; | ||
quick_tap_ms = <0>; | ||
flavor = "balanced"; | ||
bindings = <&kp>, <&kp>; | ||
}; | ||
td: tapdance { | ||
compatible = "zmk,behavior-hold-tap"; | ||
label = "TAPDANCE"; | ||
#binding-cells = <2>; | ||
tapping-term-ms = <190>; | ||
quick_tap_ms = <0>; | ||
flavor = "tap-preferred"; | ||
bindings = <&kp>, <&kp>; | ||
}; | ||
}; | ||
|
||
keymap { | ||
compatible = "zmk,keymap"; | ||
|
||
default_layer { | ||
bindings = < | ||
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P | ||
&hm LCTRL A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &hm RCTRL SEMI | ||
&hs LSHIFT Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp PERIOD &hs RSHIFT SLASH | ||
&kp BSPC < 1 DEL &kp LALT &kp RALT < 2 RET &kp SPACE | ||
>; | ||
}; | ||
|
||
lower_layer { | ||
bindings = < | ||
&kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 | ||
&trans &trans &trans &trans &kp PSCRN &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp SQT | ||
&trans &kp C_PREV &kp C_NEXT &kp LEFT &kp RIGHT &kp MINUS &kp PLUS &kp LBKT &kp RBKT &hs RSHIFT BSLH | ||
&trans &trans &kp LGUI &trans &trans &trans | ||
>; | ||
}; | ||
|
||
raise_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 &trans &kp GRAVE &kp AMPS &kp EQUAL &kp LS(N9) &kp LS(N0) &kp RA(LBKT) &kp RA(RBKT) | ||
&trans &trans &trans &trans &trans &kp MINUS &kp RA(SQT) &kp RA(BSLH) &kp BSLH &kp LS(BSLH) | ||
&trans &trans &trans &trans &trans &trans | ||
>; | ||
}; | ||
|
||
adjust_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 &trans &trans &trans &trans &trans &trans &trans &trans | ||
&bt BT_PRV &bt BT_NXT &bt BT_CLR &trans &trans &trans &trans &trans &trans &trans | ||
&trans &trans &trans &trans &trans &trans | ||
>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
file_format: "1" | ||
id: cygnus | ||
name: Cygnus | ||
type: shield | ||
url: | ||
requires: | ||
- pro_micro | ||
exposes: | ||
features: | ||
- keys | ||
siblings: | ||
- cygnus_left | ||
- cygnus_right |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Copyright (c) 2020 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
* Copyright (c) 2020 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#include "cygnus.dtsi" | ||
&kscan0 { | ||
col-gpios | ||
= <&pro_micro 20 GPIO_ACTIVE_HIGH> | ||
, <&pro_micro 10 GPIO_ACTIVE_HIGH> | ||
, <&pro_micro 6 GPIO_ACTIVE_HIGH> | ||
, <&pro_micro 7 GPIO_ACTIVE_HIGH> | ||
, <&pro_micro 8 GPIO_ACTIVE_HIGH> | ||
; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Copyright (c) 2020 The ZMK Contributors | ||
# SPDX-License-Identifier: MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright (c) 2020 The ZMK Contributors | ||
* | ||
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
#include "cygnus.dtsi" | ||
|
||
&default_transform { | ||
col-offset = <5>; | ||
}; | ||
|
||
&kscan0 { | ||
col-gpios | ||
= <&pro_micro 8 GPIO_ACTIVE_HIGH> | ||
, <&pro_micro 7 GPIO_ACTIVE_HIGH> | ||
, <&pro_micro 6 GPIO_ACTIVE_HIGH> | ||
, <&pro_micro 10 GPIO_ACTIVE_HIGH> | ||
, <&pro_micro 20 GPIO_ACTIVE_HIGH> | ||
; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# 电池电量报告间隔时间单位是秒 | ||
CONFIG_ZMK_BATTERY_REPORT_INTERVAL=60 | ||
# 增加键盘消抖 | ||
CONFIG_ZMK_KSCAN_DEBOUNCE_PRESS_MS=5 | ||
CONFIG_ZMK_KSCAN_DEBOUNCE_RELEASE_MS=5 | ||
# 增加键盘的 BLE 无线电的发射功率,用解决延迟和左右通讯不佳的问题 | ||
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y | ||
# 更改键盘默认显示名称 | ||
CONFIG_ZMK_KEYBOARD_NAME="Skeletyl" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"id": "skeletyl", | ||
"name": "skeletyl", | ||
"layouts": { | ||
"default_layout": { | ||
"name": "default_layout", | ||
"layout": [ | ||
{ "row": 0, "col": 0, "x": 0, "y": 0.36 }, | ||
{ "row": 0, "col": 2, "x": 1, "y": 0.36 }, | ||
{ "row": 0, "col": 4, "x": 2, "y": 0.11 }, | ||
{ "row": 0, "col": 6, "x": 3, "y": -0.015 }, | ||
{ "row": 0, "col": 7, "x": 4, "y": 0.11 }, | ||
{ "row": 0, "col": 8, "x": 9, "y": 0.11 }, | ||
{ "row": 0, "col": 10, "x": 10, "y": -0.015 }, | ||
{ "row": 0, "col": 11, "x": 11, "y": 0.11 }, | ||
{ "row": 0, "col": 12, "x": 12, "y": 0.36 }, | ||
{ "row": 0, "col": 13, "x": 13, "y": 0.36 }, | ||
|
||
{ "row": 1, "col": 0, "x": 0, "y": 1.36 }, | ||
{ "row": 1, "col": 2, "x": 1, "y": 1.36 }, | ||
{ "row": 1, "col": 4, "x": 2, "y": 1.11 }, | ||
{ "row": 1, "col": 6, "x": 3, "y": 0.985 }, | ||
{ "row": 1, "col": 7, "x": 4, "y": 1.11 }, | ||
{ "row": 1, "col": 8, "x": 9, "y": 1.11 }, | ||
{ "row": 1, "col": 10, "x": 10, "y": 0.985 }, | ||
{ "row": 1, "col": 11, "x": 11, "y": 1.11 }, | ||
{ "row": 1, "col": 12, "x": 12, "y": 1.36 }, | ||
{ "row": 1, "col": 13, "x": 13, "y": 1.36 }, | ||
|
||
{ "row": 2, "col": 0, "x": 0, "y": 2.36 }, | ||
{ "row": 2, "col": 2, "x": 1, "y": 2.36 }, | ||
{ "row": 2, "col": 4, "x": 2, "y": 2.11 }, | ||
{ "row": 2, "col": 6, "x": 3, "y": 1.985 }, | ||
{ "row": 2, "col": 7, "x": 4, "y": 2.11 }, | ||
{ "row": 2, "col": 8, "x": 9, "y": 2.11 }, | ||
{ "row": 2, "col": 10, "x": 10, "y": 1.985 }, | ||
{ "row": 2, "col": 11, "x": 11, "y": 2.11 }, | ||
{ "row": 2, "col": 12, "x": 12, "y": 2.36 }, | ||
{ "row": 2, "col": 13, "x": 13, "y": 2.36 }, | ||
|
||
{ "row": 3, "col": 1, "x":3.48,"y":3.13,"r":0}, | ||
{ "row": 3, "col": 3, "x":3.48,"y":3.13,"r":15,"rx":3.98,"ry":7.63}, | ||
{ "row": 3, "col": 5, "x":3.48,"y":2.63,"r":30,"rx":3.98,"ry":7.63,"h":1.5}, | ||
{ "row": 3, "col": 7, "x":10.52,"y":2.63,"r":-30,"rx":11.02,"ry":7.63,"h":1.5}, | ||
{ "row": 3, "col": 8, "x":10.52,"y":3.13,"r":-15,"rx":11.02,"ry":7.63}, | ||
{ "row": 3, "col": 9, "x":10.52,"y":3.13} | ||
] | ||
} | ||
}, | ||
"sensors": [] | ||
} |
Oops, something went wrong.