Skip to content

Commit

Permalink
feat: node-free setting
Browse files Browse the repository at this point in the history
urob 의 노드 프리 세팅 추가중
  • Loading branch information
lazy-dinosaur committed Mar 26, 2024
1 parent 50f531c commit 19f62ec
Show file tree
Hide file tree
Showing 20 changed files with 444 additions and 142 deletions.
Binary file modified .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "zmk-nodefree-config"]
path = zmk-nodefree-config
url = https://github.com/urob/zmk-nodefree-config.git
Binary file modified boards/.DS_Store
Binary file not shown.
Binary file modified boards/shields/.DS_Store
Binary file not shown.
5 changes: 5 additions & 0 deletions boards/shields/wowcorne/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ config ZMK_SPLIT_ROLE_CENTRAL

endif

if SHIELD_WOWCORNE_LEFT
config ZMK_SPLIT_ROLE_CENTRAL
default n
endif

if SHIELD_WOWCORNE_LEFT || SHIELD_WOWCORNE_RIGHT

config ZMK_SPLIT
Expand Down
43 changes: 0 additions & 43 deletions boards/shields/wowcorne/boards/nice_nano.overlay
Original file line number Diff line number Diff line change
@@ -1,46 +1,3 @@
#include <dt-bindings/led/led.h>

&pinctrl {
spi3_default: spi3_default {
group1 {
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
};
};

spi3_sleep: spi3_sleep {
group1 {
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
low-power-enable;
};
};
};

&spi3 {
compatible = "nordic,nrf-spim";
status = "okay";

pinctrl-0 = <&spi3_default>;
pinctrl-1 = <&spi3_sleep>;
pinctrl-names = "default", "sleep";

led_strip: ws2812@0 {
compatible = "worldsemi,ws2812-spi";

/* SPI */
reg = <0>; /* ignored, but necessary for SPI bindings */
spi-max-frequency = <4000000>;

/* WS2812 */
chain-length = <10>; /* arbitrary; change at will */
spi-one-frame = <0x70>;
spi-zero-frame = <0x40>;

color-mapping = <LED_COLOR_ID_GREEN LED_COLOR_ID_RED LED_COLOR_ID_BLUE>;
};
};

/ {
chosen {
zmk,underglow = &led_strip;
};
};
74 changes: 29 additions & 45 deletions boards/shields/wowcorne/boards/nice_nano_v2.overlay
Original file line number Diff line number Diff line change
@@ -1,46 +1,30 @@
#include <dt-bindings/led/led.h>

&pinctrl {
spi3_default: spi3_default {
group1 {
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
};
};

spi3_sleep: spi3_sleep {
group1 {
psels = <NRF_PSEL(SPIM_MOSI, 0, 6)>;
low-power-enable;
};
};
};

&spi3 {
compatible = "nordic,nrf-spim";
status = "okay";

pinctrl-0 = <&spi3_default>;
pinctrl-1 = <&spi3_sleep>;
pinctrl-names = "default", "sleep";

led_strip: ws2812@0 {
compatible = "worldsemi,ws2812-spi";

/* SPI */
reg = <0>; /* ignored, but necessary for SPI bindings */
spi-max-frequency = <4000000>;

/* WS2812 */
chain-length = <10>; /* arbitrary; change at will */
spi-one-frame = <0x70>;
spi-zero-frame = <0x40>;

color-mapping = <LED_COLOR_ID_GREEN LED_COLOR_ID_RED LED_COLOR_ID_BLUE>;
};
};

/ {
chosen {
zmk,underglow = &led_strip;
};
};
//&pinctrl {
// spi0_default: spi0_default {
// group1 {
// psels = <NRF_PSEL(SPIM_SCK, 0, 20)>,
// <NRF_PSEL(SPIM_MOSI, 0, 17)>,
// <NRF_PSEL(SPIM_MISO, 0, 25)>;
// };
// };
// spi0_sleep: spi0_sleep {
// group1 {
// psels = <NRF_PSEL(SPIM_SCK, 0, 20)>,
// <NRF_PSEL(SPIM_MOSI, 0, 17)>,
// <NRF_PSEL(SPIM_MISO, 0, 25)>;
// low-power-enable;
// };
// };
//};

//nice_view_spi: &spi0 {
// compatible = "nordic,nrf-spim";
// pinctrl-0 = <&spi0_default>;
// pinctrl-1 = <&spi0_sleep>;
// pinctrl-names = "default", "sleep";
// cs-gpios = <&pro_micro 1 GPIO_ACTIVE_HIGH>;
//};

//&pro_micro_i2c {
// status = "disabled";
//};
6 changes: 6 additions & 0 deletions boards/shields/wowcorne/wowcorne.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,9 @@
# Uncomment the following line to enable the Corne OLED Display
# CONFIG_ZMK_DISPLAY=y


# zmk mouse emulation
# Increase BLE power level
CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
CONFIG_SPI=n
8 changes: 8 additions & 0 deletions boards/shields/wowcorne/wowcorne.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,19 @@
*/

#include <dt-bindings/zmk/matrix_transform.h>
#define ZMK_MOUSE_DEFAULT_MOVE_VAL 1500 // 600
#define ZMK_MOUSE_DEFAULT_SCRL_VAL 20 // 10

#include <dt-bindings/zmk/mouse.h>
//#include <behaviors/mouse_keys.dtsi>



/ {
chosen {
zmk,kscan = &kscan0;
zmk,matrix-transform = &default_transform;
zephyr,console = &cdc_acm_uart;
};

default_transform: keymap_transform_0 {
Expand Down
147 changes: 126 additions & 21 deletions boards/shields/wowcorne/wowcorne.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -3,54 +3,159 @@
*
* SPDX-License-Identifier: MIT
*/

#include <dt-bindings/zmk/mouse.h>
#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>


#define WIN 0
#define MAC 1
#define NAV 2
#define SYM 3
#define FN 4
#define CFG 5
#define MSE 6

//universial keycodes

#define L_SYM &mo SYM
#define L_FN &mo FN
#define L_CFG &mo CFG
#define L_NAV &mo NAV
#define TAB_C &kp LC(TAB)

#define LT_SP &lt MSE SPACE

// winos keycodes
#define WHF &hm LCTRL F
#define WHD &hm LALT D
#define WHJ &hm RCTRL J
#define WHK &hm RALT K
#define LANGW &mt RSHFT RALT
#define ESCW &mt LGUI ESC


// macos keycodes
#define MHF &hm LGUI F
#define MHD &hm LALT D
#define MHJ &hm RGUI J
#define MHK &hm RALT K
#define OBS &hm LA(LSFT) A
#define OBS_C &hm LC(LA(LSFT)) A
#define LANGM &mt RALT LC(SPACE)
#define ESCM &mt LCTRL ESC


&mt {
tapping-term-ms = <125>;
};
/ {
behaviors {
hm: homerow_mods {
compatible = "zmk,behavior-hold-tap";
#binding-cells = <2>;
tapping-term-ms = <150>;
quick-tap-ms = <0>;
flavor = "tap-preferred";
bindings = <&kp>, <&kp>;
};
};
keymap {
compatible = "zmk,keymap";

default_layer {
win_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 |
// | ESC | A | S | D | F | G | | H | J | K | L | ; | ' |
// | SHFT | Z | X | C | V | B | | N | M | , | . | / | BSLH |
// | 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 TAB &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp BSPC
ESCW &kp A &kp S WHD WHF &kp G &kp H WHJ WHK &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 BSLH
&kp LCTRL L_NAV LT_SP &kp RET L_SYM &kp RALT
>;
};
mac_layer {
// -----------------------------------------------------------------------------------------
// | TAB | Q | W | E | R | T | | Y | U | I | O | P | BKSP |
// | ESC | A | S | D | F | G | | H | J | K | L | ; | ' |
// | SHFT | Z | X | C | V | B | | N | M | , | . | / | BSLH |
// | CTL | 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
ESCM OBS &kp S MHD MHF &kp G &kp H MHJ MHK &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 BSLH
&kp LGUI L_NAV LT_SP &kp RET L_SYM LANGM
>;
};
nav_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 |
bindings = <
TAB_C &trans &trans &trans &trans &trans &kp HOME &kp PG_UP &kp PG_DN &kp END &kp DEL &kp BSPC
&trans OBS_C &trans &trans &trans &trans &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp COLON &kp KP_EQUAL
&kp LSHFT &trans &trans &trans &trans &trans &trans &trans &kp F11 &kp F12 &kp UNDER &kp TILDE
&trans &trans &trans &kp RET L_FN &trans
>;
};
sym_layer {
// -----------------------------------------------------------------------------------------
// | TAB | 1 | 2 | 3 | 4 | 5 | | 6 | 7 | 8 | 9 | 0 | BKSP |
// | CTRL | - | { | [ | ( | _ | | * | ) | ] | } | + | = |
// | SHFT | ! | @ | # | $ | % | | ^ | & | , | , | / | ` |
// | GUI | | SPC | | ENT | | 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 UNDER &kp LBRC &kp LBKT &kp LPAR &kp MINUS &kp PLUS &kp RPAR &kp RBKT &kp RBRC &kp KP_MULTIPLY &kp KP_EQUAL
&kp LSHFT &kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp COMMA &kp DOT &kp FSLH &trans
&trans L_FN &trans &kp RET &trans &trans
>;
};
lower_layer {

fn_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 |
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
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12
&kp C_PWR &none &kp C_PREV &kp C_PP &kp C_NEXT &none &kp C_BRI_DN &kp C_VOL_DN &kp C_VOL_UP &kp C_BRI_UP &none &none
&kp LSHFT &none &none &none &none &none &none &kp C_MUTE &none &none &none L_CFG
&kp LGUI &trans &kp SPACE &kp RET &trans &kp RALT
>;
};
cfg_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 |
bindings = <
&kp TAB &to WIN &to MAC &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
>;
};

raise_layer {
mse_layer {
// -----------------------------------------------------------------------------------------
// | TAB | ! | @ | # | $ | % | | ^ | & | * | ( | ) | BKSP |
// | CTRL | | | | | | | - | = | [ | ] | \ | ` |
// | SHFT | | | | | | | _ | + | { | } | "|" | ~ |
// | 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 |
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
>;
&none &none &msc SCRL_LEFT &msc SCRL_RIGHT &msc SCRL_UP &none &none &none &none &none &none &none
&trans &none &mkp MCLK &mkp RCLK &mkp LCLK &none &none &trans &trans &none &none &none
&kp LSHFT &none &none &none &msc SCRL_DOWN &none &none &none &none &none &none &none
&trans &none &trans &kp RET &none &none
>
};
};
};


2 changes: 1 addition & 1 deletion boards/shields/wowcorne/wowcorne.zmk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type: shield
url: https://github.com/WowCole/zmk-config-corne-cirque/
requires: [pro_micro]
exposes:
- i2c_glidepoint
- i2c_cirque

features:
- keys
Expand Down
7 changes: 2 additions & 5 deletions boards/shields/wowcorne/wowcorne_left.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# I2C for cirque
CONFIG_I2C=y

# zmk mouse emulation
CONFIG_ZMK_MOUSE=y
CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
14 changes: 12 additions & 2 deletions boards/shields/wowcorne/wowcorne_right.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Turn on logging, and set ZMK logging to debug output
CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y

# CONFIG_ZMK_USB_LOGGING=y
# I2C for cirque
CONFIG_I2C=y

# zmk mouse emulation
CONFIG_INPUT=y
CONFIG_ZMK_MOUSE=y


CONFIG_INPUT_PINNACLE=y

# CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=4000
# CONFIG_LOG_MAX_LEVEL=4
Loading

0 comments on commit 19f62ec

Please sign in to comment.