-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(chipper): move config to the right directory
- Loading branch information
Showing
12 changed files
with
240 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
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 @@ | ||
# Uncomment the following lines to enable the Corne RGB Underglow | ||
#CONFIG_ZMK_RGB_UNDERGLOW=y | ||
#CONFIG_WS2812_STRIP=y | ||
# Uncomment to enable encoder | ||
#CONFIG_EC11=y | ||
#CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y | ||
# Uncomment the following line to enable the Corne OLED Display | ||
CONFIG_ZMK_DISPLAY=y | ||
CONFIG_LVGL_USE_THEME_MONO=y | ||
CONFIG_LVGL_COLOR_TRANSP_CUSTOM=y | ||
CONFIG_LVGL_CUSTOM_COLOR_TRANSP_RED=0x00 | ||
CONFIG_LVGL_CUSTOM_COLOR_TRANSP_GREEN=0x00 | ||
CONFIG_LVGL_CUSTOM_COLOR_TRANSP_BLUE=0x00 | ||
CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_16=y | ||
CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_26=y | ||
|
||
# Turn on logging, and set ZMK logging to debug output | ||
# CONFIG_ZMK_USB_LOGGING=y | ||
|
File renamed without changes.
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,168 @@ | ||
/* | ||
* 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> | ||
#include <dt-bindings/zmk/outputs.h> | ||
|
||
#define COMBO_TIMEOUT 60 | ||
|
||
#define DEFAULT 0 | ||
#define LOWER 1 | ||
#define RAISE 2 | ||
#define DANGER 3 | ||
|
||
/ { | ||
macros { | ||
hello: hello { | ||
label = "hello"; | ||
compatible = "zmk,behavior-macro"; | ||
#binding-cells = <0>; | ||
bindings | ||
= <¯o_tap_time 10> | ||
,<¯o_tap &kp H &kp E &kp L &kp L &kp O> | ||
; | ||
}; | ||
}; | ||
}; | ||
|
||
|
||
/ { | ||
combos { | ||
compatible = "zmk,combos"; | ||
combo_del { | ||
timeout-ms = <COMBO_TIMEOUT>; | ||
key-positions = <11 12 13>; | ||
bindings = <&mt RALT DEL>; | ||
}; | ||
combo_cw { | ||
timeout-ms = <COMBO_TIMEOUT>; | ||
key-positions = <2 3 4>; | ||
bindings = <&caps_word>; | ||
}; | ||
combo_tab { | ||
timeout-ms = <COMBO_TIMEOUT>; | ||
key-positions = <10 11 12>; | ||
bindings = <&mt K_CONTEXT_MENU TAB>; | ||
}; | ||
combo_row { | ||
timeout-ms = <COMBO_TIMEOUT>; | ||
key-positions = <12 13 14>; | ||
bindings = <&kp LS(HOME)>; | ||
}; | ||
combo_esc { | ||
timeout-ms = <COMBO_TIMEOUT>; | ||
key-positions = <0 1 2>; | ||
bindings = <&kp ESC>; | ||
}; | ||
combo_ctlbksp { | ||
timeout-ms = <COMBO_TIMEOUT>; | ||
key-positions = <6 7 8>; | ||
bindings = <&kp LC(BSPC)>; | ||
}; | ||
combo_bksp { | ||
timeout-ms = <COMBO_TIMEOUT>; | ||
key-positions = <16 17 18>; | ||
bindings = <&kp BSPC>; | ||
}; | ||
}; | ||
}; | ||
|
||
&caps_word { | ||
continue-list = <UNDERSCORE MINUS BACKSPACE DELETE HOME END LEFT RIGHT>; | ||
}; | ||
|
||
&kscan0 { | ||
debounce-period = <20>; | ||
}; | ||
|
||
/ { | ||
behaviors { | ||
|
||
bh: layer_taps | ||
{ | ||
compatible = "zmk,behavior-hold-tap"; | ||
label = "Layer-Tap"; | ||
#binding-cells = <2>; | ||
tapping_term_ms = <215>; | ||
flavor = "tap-preferred"; | ||
bindings = <&mo>, <&kp>; | ||
}; | ||
|
||
hm: homerow_mods { | ||
compatible = "zmk,behavior-hold-tap"; | ||
label = "HOMEROW_MODS"; | ||
#binding-cells = <2>; | ||
tapping-term-ms = <170>; | ||
quick_tap_ms = <0>; | ||
flavor = "tap-preferred"; | ||
bindings = <&kp>, <&kp>; | ||
}; | ||
sm: shift_mods { | ||
compatible = "zmk,behavior-hold-tap"; | ||
label = "SHIFT_MODS"; | ||
#binding-cells = <2>; | ||
tapping-term-ms = <170>; | ||
quick_tap_ms = <0>; | ||
flavor = "hold-preferred"; | ||
bindings = <&kp>, <&kp>; | ||
}; | ||
}; | ||
}; | ||
|
||
/ { | ||
keymap { | ||
compatible = "zmk,keymap"; | ||
|
||
default_layer { | ||
// ----------------------------------------------------------------------------------------- | ||
// | Q | W | E | R | T | | Y | U | I | O | P | | ||
// | A | S | D | F | G | | H | J | K | L | ; | | ||
// | Z | X | C | V | B | | N | M | , | . | / | | ||
// | GUI | LWR | ENT | | SPC | RSE | ALT | | ||
bindings = < | ||
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P | ||
&bh 3 A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SQT | ||
&mt LSHFT Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &mt RSHFT FSLH | ||
&kp LGUI &bh 1 HOME &mt LCTRL RET &kp SPACE &bh 2 END &mt RALT LG(V) | ||
>; | ||
label = "BASE"; | ||
}; | ||
lower_layer { | ||
|
||
bindings = < | ||
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_CLR &kp PG_UP &kp N7 &kp N8 &kp N9 &kp BSPC | ||
&kp F2 &hm LCTRL F3 &hm LSHFT F4 &hm LALT F5 &hm LGUI F6 &kp PG_DN &kp N4 &kp N5 &kp N6 &kp BSLH | ||
&kp F7 &kp F8 &kp F10 &kp F11 &kp F12 &kp INS &kp N1 &kp N2 &kp N3 &kp LC(RET) | ||
&kp LC(LA(LSHFT)) &trans &mt RALT RET &mt LCTRL F1 &kp N0 &mt LSHFT DOT | ||
>; | ||
label = "Numbers"; | ||
}; | ||
|
||
raise_layer { | ||
|
||
bindings = < | ||
&kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp CARET &kp AMPS &kp KP_MULTIPLY &kp LPAR &kp RPAR | ||
&kp TAB &kp CAPS &kp F13 &out OUT_TOG &kp LGUI &kp MINUS &kp EQUAL &kp LBRC &kp RBRC &kp PIPE | ||
&kp ESC &kp GRAVE &kp QMARK &kp F9 &kp F17 &kp UNDER &kp PLUS &kp LBKT &kp RBKT &kp BSLH | ||
&kp LCTRL &kp LALT &mt LSHFT LS(INS) &kp RET &trans &mt RALT TILDE | ||
>; | ||
label = "Symbols"; | ||
}; | ||
|
||
danger_layer { | ||
|
||
bindings = < | ||
&bootloader &kp AT &kp HASH &kp PAUSE_BREAK &kp SLCK &kp C_VOL_UP &hm LC(V) LC(C) &hello &kp LC(LA(DEL)) &bootloader | ||
&trans &trans &kp LC(LSHFT) &mt LSHFT UP &mt LCTRL PSCRN &kp C_VOL_DN &trans &trans &kp UP &kp SEMI | ||
&kp LNLCK &trans &kp LEFT &kp DOWN &kp RIGHT &kp C_MUTE &trans &kp LEFT &kp DOWN &kp RIGHT | ||
&kp LG(Z) &kp LG(X) &kp LG(C) &kp LC(LA(W)) &kp LC(LA(P)) &kp LC(LA(R)) | ||
>; | ||
label = "**DANGER**"; | ||
}; | ||
}; | ||
}; |
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,14 @@ | ||
file_format: "1" | ||
id: chipper | ||
name: Chipper | ||
type: shield | ||
url: https://github.com/JonMuller/gerbers/tree/main/corne-choc-xiao | ||
requires: [seeeduino_xiao_ble] | ||
exposes: [i2c_oled] | ||
features: | ||
- keys | ||
- display | ||
siblings: | ||
- chipper_left | ||
- chipper_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,22 @@ | ||
# Turn on logging, and set ZMK logging to debug output | ||
# CONFIG_ZMK_USB_LOGGING=y | ||
# CONFIG_ZMK_RGB_UNDERGLOW=y | ||
# CONFIG_WS2812_STRIP=y | ||
# Uncomment to enable encoder | ||
#CONFIG_EC11=y | ||
#CONFIG_EC11_TRIGGER_GLOBAL_THREAD=y | ||
|
||
# Set NFC Pins on Xaio as GPIO - Do this only once then uncomment | ||
# CONFIG_NFCT_PINS_AS_GPIOS=y | ||
|
||
# Uncomment the following line to enable the Corne OLED Display | ||
CONFIG_ZMK_DISPLAY=y | ||
#CONFIG_LVGL_USE_THEME_MONO=y | ||
#CONFIG_LVGL_COLOR_TRANSP_CUSTOM=y | ||
#CONFIG_LVGL_CUSTOM_COLOR_TRANSP_RED=0x00 | ||
#CONFIG_LVGL_CUSTOM_COLOR_TRANSP_GREEN=0x00 | ||
#CONFIG_LVGL_CUSTOM_COLOR_TRANSP_BLUE=0x00 | ||
#CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_16=y | ||
#CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_26=y | ||
CONFIG_ZMK_LV_FONT_DEFAULT_SMALL_MONTSERRAT_26=y | ||
CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26=y |
File renamed without changes.
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,17 @@ | ||
# Turn on logging, and set ZMK logging to debug output | ||
# CONFIG_ZMK_USB_LOGGING=y | ||
|
||
# Set NFC Pins on Xaio as GPIO - Do this only once then uncomment | ||
#CONFIG_NFCT_PINS_AS_GPIOS=y | ||
|
||
# Uncomment the following line to enable the Corne OLED Display | ||
CONFIG_ZMK_DISPLAY=y | ||
#CONFIG_LVGL_USE_THEME_MONO=y | ||
#CONFIG_LVGL_COLOR_TRANSP_CUSTOM=y | ||
#CONFIG_LVGL_CUSTOM_COLOR_TRANSP_RED=0x00 | ||
#CONFIG_LVGL_CUSTOM_COLOR_TRANSP_GREEN=0x00 | ||
#CONFIG_LVGL_CUSTOM_COLOR_TRANSP_BLUE=0x00 | ||
#CONFIG_LVGL_THEME_DEFAULT_FONT_SMALL_MONTSERRAT_16=y | ||
#CONFIG_LVGL_THEME_DEFAULT_FONT_NORMAL_MONTSERRAT_26=y | ||
CONFIG_ZMK_LV_FONT_DEFAULT_SMALL_MONTSERRAT_26=y | ||
CONFIG_LV_FONT_DEFAULT_MONTSERRAT_26=y |
File renamed without changes.