From e573bb2312f7e95b7c5873ed721f79f72ac718ba Mon Sep 17 00:00:00 2001 From: Nick Van Doorn Date: Tue, 5 Oct 2021 23:17:47 -0700 Subject: Add my stuff Yeah! --- app/boards/shields/corne/corne.conf | 2 +- app/boards/shields/corne/corne.keymap | 43 +++++++++++-------------------- app/boards/shields/corne/corne_left.conf | 1 + app/boards/shields/corne/corne_right.conf | 2 ++ build.sh | 4 +++ flash-left.sh | 1 + flash-right.sh | 1 + wait-left.sh | 5 ++++ wait-right.sh | 5 ++++ 9 files changed, 35 insertions(+), 29 deletions(-) create mode 100755 build.sh create mode 100755 flash-left.sh create mode 100755 flash-right.sh create mode 100755 wait-left.sh create mode 100755 wait-right.sh diff --git a/app/boards/shields/corne/corne.conf b/app/boards/shields/corne/corne.conf index 974243c..0dcaf05 100644 --- a/app/boards/shields/corne/corne.conf +++ b/app/boards/shields/corne/corne.conf @@ -3,4 +3,4 @@ # CONFIG_WS2812_STRIP=y # Uncomment the following line to enable the Corne OLED Display -# CONFIG_ZMK_DISPLAY=y +CONFIG_ZMK_DISPLAY=y diff --git a/app/boards/shields/corne/corne.keymap b/app/boards/shields/corne/corne.keymap index 53218a8..61da4fd 100644 --- a/app/boards/shields/corne/corne.keymap +++ b/app/boards/shields/corne/corne.keymap @@ -7,49 +7,36 @@ #include #include #include +#include +#include / { keymap { compatible = "zmk,keymap"; default_layer { -// ----------------------------------------------------------------------------------------- -// | TAB | Q | W | E | R | T | | Y | U | I | O | P | BKSP | -// | CTRL | A | S | D | F | G | | H | J | K | L | ; | ' | -// | SHFT | Z | X | C | V | B | | N | M | , | . | / | ESC | -// | GUI | LWR | SPC | | ENT | RSE | ALT | 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 LCTRL &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 ESC - &kp LGUI &mo 1 &kp SPACE &kp RET &mo 2 &kp RALT + &kp ESC &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 RALT + &kp LCTRL &mo 2 &kp SPACE &kp RET &mo 1 &kp RGUI >; }; - lower_layer { -// ----------------------------------------------------------------------------------------- -// | TAB | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | BKSP | -// | BTCLR| BT1 | BT2 | BT3 | BT4 | BT5 | | LFT | DWN | UP | RGT | | | -// | SHFT | | | | | | | | | | | | | -// | GUI | | SPC | | ENT | | ALT | + raise_layer { bindings = < - &kp TAB &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp BSPC - &bt BT_CLR &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &kp LEFT &kp DOWN &kp UP &kp RIGHT &trans &trans - &kp LSHFT &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans - &kp LGUI &trans &kp SPACE &kp RET &trans &kp RALT + &kp DOWN &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp UP + &trans &trans &trans &trans &trans &trans &kp TILDE &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &trans + &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans + &trans &trans &trans &trans &trans &trans >; }; - raise_layer { -// ----------------------------------------------------------------------------------------- -// | TAB | ! | @ | # | $ | % | | ^ | & | * | ( | ) | BKSP | -// | CTRL | | | | | | | - | = | [ | ] | \ | ` | -// | SHFT | | | | | | | _ | + | { | } | "|" | ~ | -// | GUI | | SPC | | ENT | | ALT | + lower_layer { bindings = < - &kp TAB &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &kp BSPC - &kp LCTRL &trans &trans &trans &trans &trans &kp MINUS &kp EQUAL &kp LBKT &kp RBKT &kp BSLH &kp GRAVE - &kp LSHFT &trans &trans &trans &trans &trans &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE &kp TILDE - &kp LGUI &trans &kp SPACE &kp RET &trans &kp RALT + &kp LEFT &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &kp RIGHT + &out OUT_TOG &ext_power EP_OFF &ext_power EP_ON &trans &trans &trans &kp GRAVE &kp UNDER &kp PLUS &kp LBRC &kp RBRC &kp PIPE + &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 &kp BACKSLASH &trans + &trans &trans &trans &trans &trans &trans >; }; }; diff --git a/app/boards/shields/corne/corne_left.conf b/app/boards/shields/corne/corne_left.conf index e69de29..a0d1b7d 100644 --- a/app/boards/shields/corne/corne_left.conf +++ b/app/boards/shields/corne/corne_left.conf @@ -0,0 +1 @@ +CONFIG_ZMK_DISPLAY=y diff --git a/app/boards/shields/corne/corne_right.conf b/app/boards/shields/corne/corne_right.conf index e69de29..afd66ef 100644 --- a/app/boards/shields/corne/corne_right.conf +++ b/app/boards/shields/corne/corne_right.conf @@ -0,0 +1,2 @@ +CONFIG_ZMK_DISPLAY=y + diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..e1d012a --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +export GNUARMEMB_TOOLCHAIN_PATH=/opt/homebrew +export ZEPHYR_TOOLCHAIN_VARIANT=gnuarmemb +west build app -d build/left -b nice_nano_v2 -- -DSHIELD=corne_left +west build app -d build/right -b nice_nano_v2 -- -DSHIELD=corne_right diff --git a/flash-left.sh b/flash-left.sh new file mode 100755 index 0000000..217f06d --- /dev/null +++ b/flash-left.sh @@ -0,0 +1 @@ +cp build/left/zephyr/zmk.uf2 /Volumes/NICENANO diff --git a/flash-right.sh b/flash-right.sh new file mode 100755 index 0000000..8ac1872 --- /dev/null +++ b/flash-right.sh @@ -0,0 +1 @@ +cp build/right/zephyr/zmk.uf2 /Volumes/NICENANO diff --git a/wait-left.sh b/wait-left.sh new file mode 100755 index 0000000..fdf7b7a --- /dev/null +++ b/wait-left.sh @@ -0,0 +1,5 @@ +while [ ! -f /Volumes/NICENANO/CURRENT.UF2 ] +do + sleep 0.2 # or less like 0.2 +done +cp build/left/zephyr/zmk.uf2 /Volumes/NICENANO diff --git a/wait-right.sh b/wait-right.sh new file mode 100755 index 0000000..517b46e --- /dev/null +++ b/wait-right.sh @@ -0,0 +1,5 @@ +while [ ! -f /Volumes/NICENANO/CURRENT.UF2 ] +do + sleep 0.2 +done +cp build/right/zephyr/zmk.uf2 /Volumes/NICENANO -- cgit v1.2.3