added Dumbo keyboard shield
This commit is contained in:
parent
d8119cd663
commit
fb9629062a
13 changed files with 324 additions and 6 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -31,6 +31,8 @@ jobs:
|
||||||
- cradio_left
|
- cradio_left
|
||||||
- cradio_right
|
- cradio_right
|
||||||
- crbn
|
- crbn
|
||||||
|
- dumbo_left
|
||||||
|
- dumbo_right
|
||||||
- eek
|
- eek
|
||||||
- helix_left
|
- helix_left
|
||||||
- helix_right
|
- helix_right
|
||||||
|
|
62
app/boards/shields/dumbo/Kconfig.defconfig
Normal file
62
app/boards/shields/dumbo/Kconfig.defconfig
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
# Copyright (c) 2021 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
if SHIELD_DUMBO_LEFT
|
||||||
|
|
||||||
|
config ZMK_KEYBOARD_NAME
|
||||||
|
default "Dumbo Left"
|
||||||
|
|
||||||
|
config ZMK_SPLIT_BLE_ROLE_CENTRAL
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
if SHIELD_DUMBO_RIGHT
|
||||||
|
|
||||||
|
config ZMK_KEYBOARD_NAME
|
||||||
|
default "DUMBO Right"
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
if SHIELD_DUMBO_LEFT || SHIELD_DUMBO_RIGHT
|
||||||
|
|
||||||
|
config ZMK_SPLIT
|
||||||
|
default y
|
||||||
|
|
||||||
|
if ZMK_DISPLAY
|
||||||
|
|
||||||
|
config I2C
|
||||||
|
default y
|
||||||
|
|
||||||
|
config SSD1306
|
||||||
|
default y
|
||||||
|
|
||||||
|
config SSD1306_REVERSE_MODE
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif # ZMK_DISPLAY
|
||||||
|
|
||||||
|
if LVGL
|
||||||
|
|
||||||
|
config LVGL_HOR_RES_MAX
|
||||||
|
default 128
|
||||||
|
|
||||||
|
config LVGL_VER_RES_MAX
|
||||||
|
default 32
|
||||||
|
|
||||||
|
config LVGL_VDB_SIZE
|
||||||
|
default 64
|
||||||
|
|
||||||
|
config LVGL_DPI
|
||||||
|
default 148
|
||||||
|
|
||||||
|
config LVGL_BITS_PER_PIXEL
|
||||||
|
default 1
|
||||||
|
|
||||||
|
choice LVGL_COLOR_DEPTH
|
||||||
|
default LVGL_COLOR_DEPTH_1
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
endif # LVGL
|
||||||
|
|
||||||
|
endif
|
8
app/boards/shields/dumbo/Kconfig.shield
Normal file
8
app/boards/shields/dumbo/Kconfig.shield
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Copyright (c) 2021 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
config SHIELD_DUMBO_LEFT
|
||||||
|
def_bool $(shields_list_contains,dumbo_left)
|
||||||
|
|
||||||
|
config SHIELD_DUMBO_RIGHT
|
||||||
|
def_bool $(shields_list_contains,dumbo_right)
|
9
app/boards/shields/dumbo/dumbo.conf
Normal file
9
app/boards/shields/dumbo/dumbo.conf
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Copyright (c) 2021 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
# Uncomment the following line to enable the OLED Display
|
||||||
|
# CONFIG_ZMK_DISPLAY=y
|
||||||
|
|
||||||
|
# Uncomment these two lines to add support for encoders
|
||||||
|
CONFIG_EC11=y
|
||||||
|
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
105
app/boards/shields/dumbo/dumbo.dtsi
Normal file
105
app/boards/shields/dumbo/dumbo.dtsi
Normal file
|
@ -0,0 +1,105 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2021 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 = <12>;
|
||||||
|
rows = <4>;
|
||||||
|
// | SW1 | SW2 | SW3 | SW4 | SW5 | SW6 | | SW6 | SW5 | SW4 | SW3 | SW2 | SW1 |
|
||||||
|
// | SW7 | SW8 | SW9 | SW10 | SW11 | SW12 | | SW12 | SW11 | SW10 | SW9 | SW8 | SW7 |
|
||||||
|
// | SW13 | SW14 | SW15 | SW16 | SW17 | SW18 | | SW18 | SW17 | SW16 | SW15 | SW14 | SW13 |
|
||||||
|
// | SW19 | SW20 | SW21 | SW22 | | SW22 | SW21 | SW20 | SW29 |
|
||||||
|
|
||||||
|
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(0,10) RC(0,11)
|
||||||
|
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(1,10) RC(1,11)
|
||||||
|
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(2,10) RC(2,11)
|
||||||
|
RC(3,2) RC(3,3) RC(3,4) RC(3,5) RC(3,6) RC(3,7) RC(3,8) RC(3,9)
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
kscan0: kscan {
|
||||||
|
compatible = "zmk,kscan-gpio-matrix";
|
||||||
|
label = "KSCAN";
|
||||||
|
|
||||||
|
diode-direction = "col2row";
|
||||||
|
row-gpios
|
||||||
|
= <&pro_micro_d 4 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro_d 6 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro_d 7 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
, <&pro_micro_d 8 (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
|
left1_encoder: encoder_left1 {
|
||||||
|
compatible = "alps,ec11";
|
||||||
|
label = "LEFT1_ENCODER";
|
||||||
|
a-gpios = <&pro_micro_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
|
b-gpios = <&pro_micro_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
|
resolution = <4>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
left2_encoder: encoder_left2 {
|
||||||
|
compatible = "alps,ec11";
|
||||||
|
label = "LEFT2_ENCODER";
|
||||||
|
a-gpios = <&pro_micro_a 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
|
b-gpios = <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
|
resolution = <4>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
right1_encoder: encoder_right1 {
|
||||||
|
compatible = "alps,ec11";
|
||||||
|
label = "RIGHT1_ENCODER";
|
||||||
|
a-gpios = <&pro_micro_d 5 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
|
b-gpios = <&pro_micro_d 9 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
|
resolution = <4>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
right2_encoder: encoder_right2 {
|
||||||
|
compatible = "alps,ec11";
|
||||||
|
label = "RIGHT2_ENCODER";
|
||||||
|
a-gpios = <&pro_micro_a 3 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
|
b-gpios = <&pro_micro_a 2 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>;
|
||||||
|
resolution = <4>;
|
||||||
|
status = "disabled";
|
||||||
|
};
|
||||||
|
|
||||||
|
sensors {
|
||||||
|
compatible = "zmk,keymap-sensors";
|
||||||
|
sensors = <&left1_encoder &left2_encoder &right2_encoder &right1_encoder>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&pro_micro_i2c {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
ssd1306@3c {
|
||||||
|
compatible = "solomon,ssd1306fb";
|
||||||
|
reg = <0x3c>;
|
||||||
|
label = "DISPLAY";
|
||||||
|
width = <128>;
|
||||||
|
height = <32>;
|
||||||
|
segment-offset = <0>;
|
||||||
|
page-offset = <0>;
|
||||||
|
display-offset = <0>;
|
||||||
|
multiplex-ratio = <31>;
|
||||||
|
segment-remap;
|
||||||
|
com-invdir;
|
||||||
|
com-sequential;
|
||||||
|
prechargep = <0x22>;
|
||||||
|
};
|
||||||
|
};
|
64
app/boards/shields/dumbo/dumbo.keymap
Normal file
64
app/boards/shields/dumbo/dumbo.keymap
Normal file
|
@ -0,0 +1,64 @@
|
||||||
|
/*
|
||||||
|
* 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>
|
||||||
|
|
||||||
|
/ {
|
||||||
|
keymap {
|
||||||
|
compatible = "zmk,keymap";
|
||||||
|
|
||||||
|
default_layer {
|
||||||
|
// ------------------------------------------------------------------------------------------------------------
|
||||||
|
// | ESC | Q | W | E | R | T | | Y | U | I | O | P | BKSPC |
|
||||||
|
// | TAB | A | S | D | F | G | | H | J | K | L | ; | ' |
|
||||||
|
// | SHIFT | Z | X | C | V | B | | N | M | , | . | / | SHIFT |
|
||||||
|
// | ALT | CTRL | LOWER| ENTER | | SPACE | RAISE| CTRL | ALT |
|
||||||
|
bindings = <
|
||||||
|
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
|
||||||
|
&kp TAB &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
|
||||||
|
&kp LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &kp RSHFT
|
||||||
|
&kp LALT &kp LCTRL &mo 1 &kp RET &kp SPACE &mo 2 &kp RCTRL &kp RALT
|
||||||
|
>;
|
||||||
|
// encoder_left1 – encoder_left2 – encoder_right2 – encoder_right1
|
||||||
|
sensor-bindings = <&inc_dec_kp C_BRI_INC C_BRI_DEC &inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp C_NEXT C_PREV &inc_dec_kp PG_UP PG_DN>;
|
||||||
|
};
|
||||||
|
|
||||||
|
lower_layer {
|
||||||
|
// TODO: Some binds are waiting for shifted keycode support.
|
||||||
|
// ------------------------------------------------------------------------------------------------------------
|
||||||
|
// | ` | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | |
|
||||||
|
// | | ! | @ | # | $ | % | | ^ | & | * | ( | ) | | |
|
||||||
|
// | | = | - | + | { | } | | [ | ] | ; | : | \ | |
|
||||||
|
// | ALT | CTRL | LOWER| ENTER | | SPACE | RAISE| CTRL | ALT |
|
||||||
|
bindings = <
|
||||||
|
&kp GRAVE &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC
|
||||||
|
&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &kp PIPE
|
||||||
|
&trans &kp EQUAL &kp MINUS &kp KP_PLUS &kp LBRC &kp RBRC &kp LBKT &kp RBKT &kp SEMI &kp COLON &kp BSLH &trans
|
||||||
|
&trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
>;
|
||||||
|
// encoder_left1 – encoder_left2 – encoder_right2 – encoder_right1
|
||||||
|
sensor-bindings = <&inc_dec_kp C_BRI_INC C_BRI_DEC &inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp C_NEXT C_PREV &inc_dec_kp PG_UP PG_DN>;
|
||||||
|
};
|
||||||
|
|
||||||
|
raise_layer {
|
||||||
|
// ------------------------------------------------------------------------------------------------------------
|
||||||
|
// |BTCLR| BT1 | BT2 | BT3 | BT4 | BT5 | | | | | | | |
|
||||||
|
// | | INS | PSCR | GUI | | | | PGUP | | ^ | | | |
|
||||||
|
// | | ALT | CTRL | SHIFT | | CAPS | | PGDN | <- | v | -> | DEL | BKSPC |
|
||||||
|
// | | | | | | | | | |
|
||||||
|
bindings = <
|
||||||
|
&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 &trans &trans &trans
|
||||||
|
&trans &kp INS &kp PSCRN &kp K_CMENU &trans &trans &kp PG_UP &trans &kp UP &trans &kp N0 &trans
|
||||||
|
&trans &kp LALT &kp LCTRL &kp LSHFT &trans &kp CLCK &kp PG_DN &kp LEFT &kp DOWN &kp RIGHT &kp DEL &kp BSPC
|
||||||
|
&trans &trans &trans &trans &trans &trans &trans &trans
|
||||||
|
>;
|
||||||
|
// encoder_left1 – encoder_left2 – encoder_right2 – encoder_right1
|
||||||
|
sensor-bindings = <&inc_dec_kp C_BRI_INC C_BRI_DEC &inc_dec_kp C_VOL_UP C_VOL_DN &inc_dec_kp C_NEXT C_PREV &inc_dec_kp PG_UP PG_DN>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
5
app/boards/shields/dumbo/dumbo_left.conf
Normal file
5
app/boards/shields/dumbo/dumbo_left.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Copyright (c) 2021 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
CONFIG_EC11=y
|
||||||
|
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
26
app/boards/shields/dumbo/dumbo_left.overlay
Normal file
26
app/boards/shields/dumbo/dumbo_left.overlay
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2021 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "dumbo.dtsi"
|
||||||
|
|
||||||
|
&kscan0 {
|
||||||
|
col-gpios
|
||||||
|
= <&pro_micro_d 10 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_a 1 GPIO_ACTIVE_HIGH>
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
|
&left1_encoder {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&left2_encoder {
|
||||||
|
status = "okay";
|
||||||
|
};
|
5
app/boards/shields/dumbo/dumbo_right.conf
Normal file
5
app/boards/shields/dumbo/dumbo_right.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# Copyright (c) 2021 The ZMK Contributors
|
||||||
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
CONFIG_EC11=y
|
||||||
|
CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y
|
30
app/boards/shields/dumbo/dumbo_right.overlay
Normal file
30
app/boards/shields/dumbo/dumbo_right.overlay
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2021 The ZMK Contributors
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: MIT
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "dumbo.dtsi"
|
||||||
|
|
||||||
|
&default_transform {
|
||||||
|
col-offset = <6>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&kscan0 {
|
||||||
|
col-gpios
|
||||||
|
= <&pro_micro_a 1 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_a 0 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 15 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 14 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 16 GPIO_ACTIVE_HIGH>
|
||||||
|
, <&pro_micro_d 10 GPIO_ACTIVE_HIGH>
|
||||||
|
;
|
||||||
|
};
|
||||||
|
|
||||||
|
&right2_encoder {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&right1_encoder {
|
||||||
|
status = "okay";
|
||||||
|
};
|
|
@ -40,6 +40,7 @@ That being said, there are currently only a few specific [boards](/docs/faq#what
|
||||||
- [tidbit](https://nullbits.co/tidbit/) (`tidbit`)
|
- [tidbit](https://nullbits.co/tidbit/) (`tidbit`)
|
||||||
- [Eek!](https://www.cbkbd.com/product/eek-keyboard) (`eek`)
|
- [Eek!](https://www.cbkbd.com/product/eek-keyboard) (`eek`)
|
||||||
- [BFO-9000](https://keeb.io/products/bfo-9000-keyboard-customizable-full-size-split-ortholinear) (`bfo9000_left` and `bfo9000_right`)
|
- [BFO-9000](https://keeb.io/products/bfo-9000-keyboard-customizable-full-size-split-ortholinear) (`bfo9000_left` and `bfo9000_right`)
|
||||||
|
- [Dumbo](https://gitlab.com/adamnaldal/dumbo-keeb)(`dumbo_left` and `dumbo_right`)
|
||||||
|
|
||||||
## Other Hardware
|
## Other Hardware
|
||||||
|
|
||||||
|
|
10
docs/static/setup.ps1
vendored
10
docs/static/setup.ps1
vendored
|
@ -58,11 +58,11 @@ catch [System.Management.Automation.CommandNotFoundException] {
|
||||||
Test-Git-Config -Option "user.name" -ErrMsg "Git username not set!`nRun: git config --global user.name 'My Name'"
|
Test-Git-Config -Option "user.name" -ErrMsg "Git username not set!`nRun: git config --global user.name 'My Name'"
|
||||||
Test-Git-Config -Option "user.email" -ErrMsg "Git email not set!`nRun: git config --global user.email 'example@myemail.com'"
|
Test-Git-Config -Option "user.email" -ErrMsg "Git email not set!`nRun: git config --global user.email 'example@myemail.com'"
|
||||||
|
|
||||||
$permission = (Get-Acl $pwd).Access |
|
$permission = (Get-Acl $pwd).Access |
|
||||||
?{$_.IdentityReference -match $env:UserName `
|
?{$_.IdentityReference -match $env:UserName `
|
||||||
-and $_.FileSystemRights -match "FullControl" `
|
-and $_.FileSystemRights -match "FullControl" `
|
||||||
-or $_.FileSystemRights -match "Write" } |
|
-or $_.FileSystemRights -match "Write" } |
|
||||||
|
|
||||||
Select IdentityReference,FileSystemRights
|
Select IdentityReference,FileSystemRights
|
||||||
|
|
||||||
If (-Not $permission){
|
If (-Not $permission){
|
||||||
|
@ -91,8 +91,8 @@ $prompt = "Pick a keyboard"
|
||||||
|
|
||||||
# TODO: Add support for "Other" and linking to docs on adding custom shields in user config repos.
|
# TODO: Add support for "Other" and linking to docs on adding custom shields in user config repos.
|
||||||
$options = "Kyria", "Lily58", "Corne", "Splitreus62", "Sofle", "Iris", "Reviung41", "RoMac", "RoMac+", "makerdiary M60", "Microdox", "TG4X", "QAZ", "NIBBLE", "Jorne", "Jian", "CRBN", "Tidbit", "Eek!", "BFO-9000", "Helix"
|
$options = "Kyria", "Lily58", "Corne", "Splitreus62", "Sofle", "Iris", "Reviung41", "RoMac", "RoMac+", "makerdiary M60", "Microdox", "TG4X", "QAZ", "NIBBLE", "Jorne", "Jian", "CRBN", "Tidbit", "Eek!", "BFO-9000", "Helix"
|
||||||
$names = "kyria", "lily58", "corne", "splitreus62", "sofle", "iris", "reviung41", "romac", "romac_plus", "m60", "microdox", "tg4x", "qaz", "nibble", "jorne", "jian", "crbn", "tidbit", "eek", "bfo9000", "helix"
|
$names = "kyria", "lily58", "corne", "splitreus62", "sofle", "iris", "reviung41", "romac", "romac_plus", "m60", "microdox", "tg4x", "qaz", "nibble", "jorne", "jian", "crbn", "tidbit", "eek", "bfo9000", "helix", "dumbo"
|
||||||
$splits = "y", "y", "y", "y", "y", "y", "n", "n", "n", "n", "y", "n", "n", "n", "y", "y", "n", "n", "n", "n", "y"
|
$splits = "y", "y", "y", "y", "y", "y", "n", "n", "n", "n", "y", "n", "n", "n", "y", "y", "n", "n", "n", "n", "y", "y"
|
||||||
|
|
||||||
$choice = Get-Choice-From-Options -Options $options -Prompt $prompt
|
$choice = Get-Choice-From-Options -Options $options -Prompt $prompt
|
||||||
$shield_title = $($options[$choice])
|
$shield_title = $($options[$choice])
|
||||||
|
|
3
docs/static/setup.sh
vendored
3
docs/static/setup.sh
vendored
|
@ -91,7 +91,7 @@ echo ""
|
||||||
echo "Keyboard Shield Selection:"
|
echo "Keyboard Shield Selection:"
|
||||||
|
|
||||||
prompt="Pick an keyboard:"
|
prompt="Pick an keyboard:"
|
||||||
options=("Kyria" "Lily58" "Corne" "Splitreus62" "Sofle" "Iris" "Reviung41" "RoMac" "RoMac+" "makerdiary M60" "Microdox" "TG4X" "QAZ" "NIBBLE" "Jorne" "Jian" "CRBN" "Tidbit" "Eek!" "BFO-9000" "Helix")
|
options=("Kyria" "Lily58" "Corne" "Splitreus62" "Sofle" "Iris" "Reviung41" "RoMac" "RoMac+" "makerdiary M60" "Microdox" "TG4X" "QAZ" "NIBBLE" "Jorne" "Jian" "CRBN" "Tidbit" "Eek!" "BFO-9000" "Helix" "Dumbo")
|
||||||
|
|
||||||
PS3="$prompt "
|
PS3="$prompt "
|
||||||
# TODO: Add support for "Other" and linking to docs on adding custom shields in user config repos.
|
# TODO: Add support for "Other" and linking to docs on adding custom shields in user config repos.
|
||||||
|
@ -121,6 +121,7 @@ select opt in "${options[@]}" "Quit"; do
|
||||||
19 ) shield_title="Eek!" shield="eek"; split="n" break;;
|
19 ) shield_title="Eek!" shield="eek"; split="n" break;;
|
||||||
20 ) shield_title="BFO-9000" shield="bfo9000"; split="y"; break;;
|
20 ) shield_title="BFO-9000" shield="bfo9000"; split="y"; break;;
|
||||||
21 ) shield_title="Helix" shield="helix"; split="y"; break;;
|
21 ) shield_title="Helix" shield="helix"; split="y"; break;;
|
||||||
|
22 ) shield_title="Dumbo" shield="dumbo"; split="y"; break;;
|
||||||
|
|
||||||
# Add link to docs on adding your own custom shield in your ZMK config!
|
# Add link to docs on adding your own custom shield in your ZMK config!
|
||||||
# $(( ${#options[@]}+1 )) ) echo "Other!"; break;;
|
# $(( ${#options[@]}+1 )) ) echo "Other!"; break;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue