Minor changes

This commit is contained in:
HeavyDutySoul 2023-10-06 18:41:03 +03:00
parent a559896f34
commit 7104412106
4 changed files with 21 additions and 31 deletions

View file

@ -95,12 +95,12 @@
#size-cells = <1>;
sd_partition: partition@0 {
label = "softdevice";
reg = <0x00000000 0x00026000>;
label = "mbr";
reg = <0x00000000 0x00001000>;
};
code_partition: partition@26000 {
code_partition: partition@1000 {
label = "code_partition";
reg = <0x00026000 0x000c6000>;
reg = <0x00001000 0x000d3000>;
};
/*

View file

@ -81,7 +81,7 @@
>;
};
adjust_layer {
adjust_layer {
bindings = <
// ┌──[0]───┬──[1]───┬──[2]───┬──[3]───┬──[4]───┬──[5]───┐ ┌──[6]───┬──[7]───┬──[8]───┬──[9]───┬──[10]──┬──[11]──┐
@ -91,9 +91,9 @@
// ├──[24]──┼──[25]──┼──[26]──┼──[27]──┼──[28]──┼──[29]──┤ ├──[30]──┼──[31]──┼──[32]──┼──[33]──┼──[34]──┼──[35]──┤
______ ______ ______ ______ ______ ______ Z_MUT &kp LEFT &kp DOWN &kp RIGHT &kp PGDN ______
// ├──[36]──┼──[37]──┼──[38]──┼──[39]──┼──[40]──┼──[41]──┼──[52]──┐ ┌──[53]──┼──[42]──┼──[43]──┼──[44]──┼──[45]──┼──[46]──┼──[47]──┤
______ ______ ______ ______ &suspend Z_BOOT &vim_s &vim_q Z_BOOT &suspend ______ ______ ______ ______
______ ______ ______ ______ ______ Z_BOOT &vim_s &vim_q Z_BOOT ______ ______ ______ &kp BSLH ______
// └────────┴────────┴─────┬──┴[48]─┬──┴[49]─┬──┴[50]─┬──┴──[51]──┤ ├──[54]──┴──┬─[55]┴──┬─[56]┴──┬─[57]┴──┬─────┴────────┴────────┘
______ ______ ______ ______ ______ ______ ______ ______
______ ______ ______ ______ ______ ______ ______ ______
// └────────┴────────┴────────┴───────────┘ └───────────┴────────┴────────┴────────┘
>;
};
@ -101,10 +101,8 @@
combos {
compatible = "zmk,combos";
// layer toggle
COMBO(nlock, &tog RSE, 28 31)
//COMBO(nlock, &tog RSE, 28 31)
COMBO(caps, &kp CAPS, 25 34)
// vim shortcuts
};
macros {

View file

@ -7,24 +7,18 @@
#include <dt-bindings/zmk/reset.h>
/ {
behaviors {
reset: behavior_reset {
compatible = "zmk,behavior-reset";
label = "RESET";
#binding-cells = <0>;
};
behaviors {
sys_reset: behavior_reset {
compatible = "zmk,behavior-reset";
label = "SYSRESET";
#binding-cells = <0>;
};
bootloader: behavior_reset_dfu {
compatible = "zmk,behavior-reset";
label = "BOOTLOAD";
type = <RST_UF2>;
#binding-cells = <0>;
};
suspend: behavior_reset_suspend {
compatible = "zmk,behavior-reset";
label = "SUSPEND";
type = <RST_SUSPEND>;
#binding-cells = <0>;
bootloader: behavior_reset_dfu {
compatible = "zmk,behavior-reset";
label = "BOOTLOAD";
type = <RST_UF2>;
#binding-cells = <0>;
};
};
};
};

View file

@ -10,6 +10,4 @@
// AdaFruit nrf52 Bootloader Specific. See
// https://github.com/adafruit/Adafruit_nRF52_Bootloader/blob/d6b28e66053eea467166f44875e3c7ec741cb471/src/main.c#L107
#define RST_UF2 0x57
#define RST_OTA 0xA8
#define RST_SUSPEND 0xFE
#define RST_UF2 0x57