artsey right example: remove ws2812, add wpm widget, cleanup layer lables
This commit is contained in:
parent
cb81ec3469
commit
331938388d
|
@ -1,34 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright (c) 2020 The ZMK Contributors
|
|
||||||
*
|
|
||||||
* SPDX-License-Identifier: MIT
|
|
||||||
*/
|
|
||||||
|
|
||||||
&spi1 {
|
|
||||||
compatible = "nordic,nrf-spim";
|
|
||||||
status = "okay";
|
|
||||||
mosi-pin = <6>;
|
|
||||||
// Unused pins, needed for SPI definition, but not used by the ws2812 driver itself.
|
|
||||||
sck-pin = <5>;
|
|
||||||
miso-pin = <7>;
|
|
||||||
|
|
||||||
led_strip: ws2812@0 {
|
|
||||||
compatible = "worldsemi,ws2812-spi";
|
|
||||||
label = "WS2812";
|
|
||||||
|
|
||||||
/* SPI */
|
|
||||||
reg = <0>; /* ignored, but necessary for SPI bindings */
|
|
||||||
spi-max-frequency = <4000000>;
|
|
||||||
|
|
||||||
/* WS2812 */
|
|
||||||
chain-length = <5>; /* number of LEDs */
|
|
||||||
spi-one-frame = <0x70>;
|
|
||||||
spi-zero-frame = <0x40>;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
/ {
|
|
||||||
chosen {
|
|
||||||
zmk,underglow = &led_strip;
|
|
||||||
};
|
|
||||||
};
|
|
|
@ -9,5 +9,9 @@ CONFIG_ZMK_COMBO_MAX_PRESSED_COMBOS=8
|
||||||
# Enable display (layer in use is helpful))
|
# Enable display (layer in use is helpful))
|
||||||
CONFIG_ZMK_DISPLAY=y
|
CONFIG_ZMK_DISPLAY=y
|
||||||
|
|
||||||
|
# Enable WPM widget
|
||||||
|
#CONFIG_ZMK_WPM=y
|
||||||
|
CONFIG_ZMK_WIDGET_WPM_STATUS=y
|
||||||
|
|
||||||
# USB Logging to ensure things work properly and as expected at the FW level
|
# USB Logging to ensure things work properly and as expected at the FW level
|
||||||
#CONFIG_ZMK_USB_LOGGING=y
|
#CONFIG_ZMK_USB_LOGGING=y
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
keymap {
|
keymap {
|
||||||
compatible = "zmk,keymap";
|
compatible = "zmk,keymap";
|
||||||
base {
|
base {
|
||||||
label = "Base";
|
label = "ARTSEY";
|
||||||
bindings = <
|
bindings = <
|
||||||
&none &none &none &none &none &none &none
|
&none &none &none &none &none &none &none
|
||||||
&layer_parentheticals_kp LAYER_ID_PARENTHETICALS A &kp R &kp T &layer_numbers_kp LAYER_ID_NUMBERS S
|
&layer_parentheticals_kp LAYER_ID_PARENTHETICALS A &kp R &kp T &layer_numbers_kp LAYER_ID_NUMBERS S
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
numbers {
|
numbers {
|
||||||
label = "Numbers";
|
label = "Number";
|
||||||
bindings = <
|
bindings = <
|
||||||
&none &none &none &none &none &none &none
|
&none &none &none &none &none &none &none
|
||||||
&layer_parentheticals_kp LAYER_ID_PARENTHETICALS N1 &kp N2 &kp N3 &layer_base_sl LAYER_ID_BASE LAYER_ID_F_ONE_SIX
|
&layer_parentheticals_kp LAYER_ID_PARENTHETICALS N1 &kp N2 &kp N3 &layer_base_sl LAYER_ID_BASE LAYER_ID_F_ONE_SIX
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
>;
|
>;
|
||||||
};
|
};
|
||||||
symbols {
|
symbols {
|
||||||
label = "Symbols";
|
label = "Symbol";
|
||||||
bindings = <
|
bindings = <
|
||||||
&none &none &none &none &none &none &none
|
&none &none &none &none &none &none &none
|
||||||
&layer_parentheticals_none LAYER_ID_PARENTHETICALS 0 &kp BSLH &kp SEMI &layer_numbers_kp LAYER_ID_NUMBERS GRAVE
|
&layer_parentheticals_none LAYER_ID_PARENTHETICALS 0 &kp BSLH &kp SEMI &layer_numbers_kp LAYER_ID_NUMBERS GRAVE
|
||||||
|
|
Loading…
Reference in a new issue