Skip to content

Commit

Permalink
first changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cr00k committed Aug 27, 2023
1 parent d1a8b1e commit 06e3766
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 29 deletions.
4 changes: 2 additions & 2 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
---
include:
- board: nice_nano_v2
shield: corne_left
shield: corne_left nice_view_adapter nice_view
- board: nice_nano_v2
shield: corne_right
shield: corne_right nice_view_adapter nice_view
10 changes: 9 additions & 1 deletion config/corne.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,12 @@
# CONFIG_WS2812_STRIP=y

# Uncomment the following line to enable the Corne OLED Display
# CONFIG_ZMK_DISPLAY=y
CONFIG_ZMK_DISPLAY=y
CONFIG_ZMK_EXT_POWER=y
CONFIG_ZMK_SLEEP=y
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=3600000
CONFIG_ZMK_WIDGET_WPM_STATUS=y
CONFIG_ZMK_BATTERY_REPORT_INTERVAL=600
CONFIG_ZMK_WIDGET_BATTERY_STATUS_SHOW_PERCENTAGE=y
# CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
CONFIG_ZMK_KEYBOARD_NAME="Corne Rok #1"a
73 changes: 47 additions & 26 deletions config/corne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -7,50 +7,71 @@
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/outputs.h>
#include <dt-bindings/zmk/ext_power.h>


/ {
behaviors {
tp: tap_preferred {
compatible = "zmk,behavior-hold-tap";
label = "TAP_PREFERRED";
#binding-cells = <2>;
tapping-term-ms = <150>;
quick-tap-ms = <0>;
flavor = "tap-preferred";
bindings = <&kp>, <&kp>;
};
};

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 |
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | ESC |
// | CTRL | A | S | D | F | G | | H | J | K | L | ; | ' |
// | SHFT | Z | X | C | V | B | | N | M | , | . | / | RALT |
// | GUI | LWR | ALT/ENT | | HYPER/SPC | BKSP | RSE |
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 TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp ESC
&kp LCTRL &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &tp LC(LS(LALT)) 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 LGUI &mo 1 &tp LC(LS(LA(LGUI))) SPACE &tp LALT RET &kp BSPC &mo 2
>;
};
lower_layer {

layer_below {
// -----------------------------------------------------------------------------------------
// | 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 |
// | | ! | @ | # | $ | % | | ^ | & | * | ( | ) | \ |
// | | 1 | 2 | 3 | 4 | 5 | | - | = | ` | [ | ] | "|" |
// | SHFT | 6 | 7 | 8 | 9 | 0 | | _ | + | ~ | { | } | RALT |
// | GUI | | ALT/ENT | | HYPER/SPACE | BKSP | |
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
&trans &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR &kp BSLH
&trans &kp N1 &kp N2 &kp N3 &kp N4 &kp N5 &kp MINUS &kp EQUAL &kp GRAVE &kp LBKT &kp RBKT &kp PIPE
&kp LSHFT &kp N6 &kp N7 &kp N8 &kp N9 &kp N0 &kp UNDER &kp PLUS &kp TILDE &kp LBRC &kp RBRC &kp RALT
&kp LGUI &trans &tp LC(LS(LA(LGUI))) SPACE &tp LALT RET &kp BSPC &trans
>;
};

raise_layer {
layer_above {
// -----------------------------------------------------------------------------------------
// | TAB | ! | @ | # | $ | % | | ^ | & | * | ( | ) | BKSP |
// | CTRL | | | | | | | - | = | [ | ] | \ | ` |
// | SHFT | | | | | | | _ | + | { | } | "|" | ~ |
// | GUI | | SPC | | ENT | | ALT |
// | | F1 | F2 | F3 | F4 | F5 | | F6 | F7 | F8 | F9 | F10 | |
// | | Prev | Next | Vol - | Vol + | Play/Pause | | | LFT | DWN | UP | RGT | | |
// | BTCLR | BT1 | BT2 | BT3 | BT4 | BT5 | | | EP_ON | | | | | EP_OFF |
// | | | | | | | |
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
&trans &kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &trans
&trans &kp K_PREV &kp K_NEXT &kp C_VOL_DN &kp C_VOL_UP &kp C_PP &kp LEFT &kp DOWN &kp UP &kp RIGHT &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 &ext_power EP_ON &trans &trans &trans &ext_power EP_OFF
&trans &trans &trans &trans &trans &trans
>;
};
};
};

&nice_view_spi {
cs-gpios = <&pro_micro 0 GPIO_ACTIVE_HIGH>;
};

0 comments on commit 06e3766

Please sign in to comment.