Added sweep
This commit is contained in:
parent
5fd34b915c
commit
bb5fa10dc1
3 changed files with 172 additions and 0 deletions
|
|
@ -79,6 +79,14 @@ include:
|
||||||
artifact-name: nice_sofle_right_rgb_oled
|
artifact-name: nice_sofle_right_rgb_oled
|
||||||
snippet: rgb-config
|
snippet: rgb-config
|
||||||
|
|
||||||
|
### SWEEP START ###
|
||||||
|
- board: nice_nano_v2
|
||||||
|
shield: cradio_left
|
||||||
|
snippet: studio-rpc-usb-uart
|
||||||
|
cmake-args: -DCONFIG_ZMK_STUDIO=y
|
||||||
|
- board: nice_nano_v2
|
||||||
|
shield: cradio_right
|
||||||
|
|
||||||
# ### LILY58 START ###
|
# ### LILY58 START ###
|
||||||
# # nice!oled lily58
|
# # nice!oled lily58
|
||||||
# - board: nice_nano_v2
|
# - board: nice_nano_v2
|
||||||
|
|
|
||||||
48
config/cradio.conf
Normal file
48
config/cradio.conf
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
### Turn of pin code pairing
|
||||||
|
CONFIG_ZMK_BLE_PASSKEY_ENTRY=n
|
||||||
|
CONFIG_ZMK_BLE_EXPERIMENTAL_SEC=n
|
||||||
|
CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=n
|
||||||
|
|
||||||
|
### Boost Bluetooth TX power, also make Bluetooth stronger
|
||||||
|
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
|
||||||
|
CONFIG_ZMK_BLE_EXPERIMENTAL_FEATURES=y
|
||||||
|
# Tune bluetooth profiles for quick select
|
||||||
|
# CONFIG_BT_MAX_CONN=3
|
||||||
|
# Uncomment the following line if you facing issue on win 11 connection
|
||||||
|
# Enables a combination of settings that are planned to be default in future
|
||||||
|
# versions of ZMK to improve connection stability. This includes changes to
|
||||||
|
# timing on BLE pairing initiation, restores use of the updated/new LLCP
|
||||||
|
# implementation, and disables 2M PHY support.
|
||||||
|
CONFIG_ZMK_BLE_EXPERIMENTAL_CONN=y
|
||||||
|
|
||||||
|
### POWER OPTIONS
|
||||||
|
CONFIG_ZMK_SLEEP=y
|
||||||
|
CONFIG_ZMK_EXT_POWER=y
|
||||||
|
# 15 min (15*60*1000ms)
|
||||||
|
# CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000
|
||||||
|
# 1 min Número de milisegundos de inactividad antes de entrar en estado inactivo
|
||||||
|
# CONFIG_ZMK_IDLE_TIMEOUT=60000
|
||||||
|
# 30 min (30*60*1000ms)
|
||||||
|
# CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000
|
||||||
|
# CONFIG_ZMK_IDLE_TIMEOUT=120000
|
||||||
|
# Disable external power when not connected to USB
|
||||||
|
# CONFIG_ZMK_EXT_POWER_USB_ONLY=y
|
||||||
|
|
||||||
|
### MOUSE
|
||||||
|
# https://github.com/zmkfirmware/zmk/blob/main/docs/docs/keymaps/behaviors/mouse-emulation.md
|
||||||
|
# CONFIG_ZMK_MOUSE=y
|
||||||
|
|
||||||
|
### ZMK STUDIO
|
||||||
|
# MC: 2. zmk-studio test START
|
||||||
|
# https://github.com/zmkfirmware/zmk/blob/main/docs/docs/config/studio.md
|
||||||
|
CONFIG_ZMK_STUDIO=y
|
||||||
|
CONFIG_ZMK_STUDIO_LOCKING=n
|
||||||
|
# MC: zmk-studio test END
|
||||||
|
|
||||||
|
### Improves compatibility with iPad
|
||||||
|
# ref: https://zmk.dev/docs/config/system#hid
|
||||||
|
CONFIG_ZMK_HID_CONSUMER_REPORT_USAGES_BASIC=y
|
||||||
|
|
||||||
|
### DEBUG OPTIONS
|
||||||
|
# CONFIG_ZMK_USB_LOGGING=y
|
||||||
|
# CONFIG_LOG_PROCESS_THREAD_STARTUP_DELAY_MS=8000
|
||||||
116
config/cradio.keymap
Normal file
116
config/cradio.keymap
Normal file
|
|
@ -0,0 +1,116 @@
|
||||||
|
// Copyright (c) 2022 The ZMK Contributors
|
||||||
|
// SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
|
#include <behaviors.dtsi>
|
||||||
|
#include <dt-bindings/zmk/keys.h>
|
||||||
|
#include <dt-bindings/zmk/bt.h>
|
||||||
|
|
||||||
|
// Home row mods macro
|
||||||
|
#define HRML(k1,k2,k3,k4) &ht LSHFT k1 &ht LALT k2 &ht LCTRL k3 &ht LGUI k4
|
||||||
|
#define HRMR(k1,k2,k3,k4) &ht RGUI k1 &ht RCTRL k2 &ht RALT k3 &ht RSHFT k4
|
||||||
|
|
||||||
|
/ {
|
||||||
|
behaviors {
|
||||||
|
ht: hold_tap {
|
||||||
|
label = "hold_tap";
|
||||||
|
compatible = "zmk,behavior-hold-tap";
|
||||||
|
#binding-cells = <2>;
|
||||||
|
flavor = "tap-preferred";
|
||||||
|
tapping-term-ms = <220>;
|
||||||
|
quick-tap-ms = <150>;
|
||||||
|
global-quick-tap;
|
||||||
|
bindings = <&kp>, <&kp>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
conditional_layers {
|
||||||
|
compatible = "zmk,conditional-layers";
|
||||||
|
tri_layer {
|
||||||
|
if-layers = <1 2>;
|
||||||
|
then-layer = <3>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
keymap {
|
||||||
|
compatible = "zmk,keymap";
|
||||||
|
default_layer {
|
||||||
|
bindings = <
|
||||||
|
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
|
||||||
|
//│ Q │ W │ E │ R │ T │ │ Y │ U │ I │ O │ P │
|
||||||
|
&kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P
|
||||||
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
||||||
|
//│ A │ S │ D │ F │ G │ │ H │ J │ K │ L │ ' " │
|
||||||
|
HRML(A, S, D, F) &kp G &kp H HRMR(J, K, L, SQT)
|
||||||
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
||||||
|
//│ Z │ X │ C │ V │ B │ │ N │ M │ , < │ . > │ / ? │
|
||||||
|
&kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH
|
||||||
|
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
|
||||||
|
< 2 TAB &kp ENTER &kp SPACE < 1 BSPC
|
||||||
|
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
right_layer {
|
||||||
|
bindings = <
|
||||||
|
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
|
||||||
|
//│ INSERT │ 1 │ 2 │ 3 │ │ │ HOME │ PAGE DN │ PAGE UP │ END │ : │
|
||||||
|
&kp INS &kp N1 &kp N2 &kp N3 &studio_unlock &kp HOME &kp PG_DN &kp PG_UP &kp END &kp COLON
|
||||||
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
||||||
|
//│ DELETE │ 4 │ 5 │ 6 │ │ │ LEFT │ DOWN │ UP │ RIGHT │ ; │
|
||||||
|
&kp DEL &kp N4 &kp N5 &kp N6 &trans &kp LARW &kp DARW &kp UARW &kp RARW &kp SEMI
|
||||||
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
||||||
|
//│ CAPS │ 7 │ 8 │ 9 │ 0 │ │ │ │ │ │ │
|
||||||
|
&caps_word &kp N7 &kp N8 &kp N9 &kp N0 &trans &trans &trans &trans &trans
|
||||||
|
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
|
||||||
|
&trans &kp ESC &trans &trans
|
||||||
|
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
left_layer {
|
||||||
|
bindings = <
|
||||||
|
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
|
||||||
|
//│ │ [ │ { │ } │ │ │ ^ │ ( │ ) │ ] │ ~ │
|
||||||
|
&trans &kp LBKT &kp LBRC &kp RBRC &trans &kp CARET &kp LPAR &kp RPAR &kp RBKT &kp TILDE
|
||||||
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
||||||
|
//│ ! │ @ │ # │ $ │ % │ │ * │ - │ = │ \ │ ` │
|
||||||
|
&kp EXCL &kp AT &kp HASH &kp DLLR &kp PRCNT &kp ASTRK &kp MINUS &kp EQUAL &kp BSLH &kp GRAVE
|
||||||
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
||||||
|
//│ │ │ │ │ │ │ & │ _ │ + │ │ │ │
|
||||||
|
&trans &trans &trans &trans &trans &kp AMPS &kp UNDER &kp PLUS &kp PIPE &trans
|
||||||
|
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
|
||||||
|
&trans &trans &trans &trans
|
||||||
|
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
tri_layer {
|
||||||
|
bindings = <
|
||||||
|
//╭──────────┬──────────┬──────────┬──────────┬──────────╮ ╭──────────┬──────────┬──────────┬──────────┬──────────╮
|
||||||
|
//│ RESET │ │ │ │PROFILE 0 │ │ │ │ │ │ RESET │
|
||||||
|
&sys_reset &trans &trans &trans &bt BT_SEL 0 &trans &trans &trans &trans &sys_reset
|
||||||
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
||||||
|
//│BOOTLOADER│ │ │ │PROFILE 1 │ │ │ │ │ │BOOTLOADER│
|
||||||
|
&bootloader &trans &trans &trans &bt BT_SEL 1 &trans &trans &trans &trans &bootloader
|
||||||
|
//├──────────┼──────────┼──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┼──────────┼──────────┤
|
||||||
|
//│ │ │ │ CLEAR BT │PROFILE 2 │ │ │ │ │ │ │
|
||||||
|
&trans &trans &trans &bt BT_CLR &bt BT_SEL 2 &trans &trans &trans &trans &trans
|
||||||
|
//╰──────────┴──────────┴──────────┼──────────┼──────────┤ ├──────────┼──────────┼──────────┴──────────┴──────────╯
|
||||||
|
&trans &trans &trans &trans
|
||||||
|
// ╰──────────┴──────────╯ ╰──────────┴──────────╯
|
||||||
|
>;
|
||||||
|
};
|
||||||
|
|
||||||
|
extra_1 {
|
||||||
|
status = "reserved";
|
||||||
|
};
|
||||||
|
|
||||||
|
extra_2 {
|
||||||
|
status = "reserved";
|
||||||
|
};
|
||||||
|
|
||||||
|
extra_3 {
|
||||||
|
status = "reserved";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue