-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(shields): Add MechWild OBE #1713
Conversation
…hy to disable it by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI, this shield seems to need updating to Zephyr 3.2. @lesshonor also has some relevant comments in #1714 related to pinctrl.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much of the suggestions here are identical to ones made in #1714, so if something isn't explained here, it is explained there.
You're going to have to rebase
on main
in order for this to build. (...or merge
, I guess).
Squashing your commits down to one and rewriting the message so it adheres to Conventional Commit guidelines may also make the prospect of merging more attractive to the powers that be, but that's a bit of a guess on my part. (It certainly couldn't hurt.)
|
||
if LVGL | ||
|
||
config LVGL_VDB_SIZE | ||
default 64 | ||
|
||
config LVGL_DPI | ||
default 148 | ||
|
||
config LVGL_BITS_PER_PIXEL | ||
default 1 | ||
|
||
choice LVGL_COLOR_DEPTH | ||
default LVGL_COLOR_DEPTH_1 | ||
endchoice | ||
|
||
endif # LVGL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if LVGL | |
config LVGL_VDB_SIZE | |
default 64 | |
config LVGL_DPI | |
default 148 | |
config LVGL_BITS_PER_PIXEL | |
default 1 | |
choice LVGL_COLOR_DEPTH | |
default LVGL_COLOR_DEPTH_1 | |
endchoice | |
endif # LVGL |
No display on this board.
combo_reset { | ||
timeout-ms = <TIMEOUT>; | ||
key-positions = <1 3>; | ||
bindings = <&reset>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bindings = <&reset>; | |
bindings = <&sys_reset>; |
This is part of the Zephyr 3.2 update circa April 2023.
&kp LCTRL &kp LGUI &kp LALT &kp SPACE &mo 1 &kp SPACE &kp RALT &mo 1 &kp LEFT &kp DOWN &kp RIGHT | ||
>; | ||
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}; | |
}; |
&bt BT_NXT &kp CAPS &kp KP_NUM &kp SLCK &trans &trans &trans &trans &trans &trans &trans &trans &trans &trans | ||
&trans &trans &bt BT_CLR &trans &trans &trans &trans &trans &trans &trans &trans &trans &kp PG_UP &trans | ||
&trans &trans &rgb_ug RGB_BRD &rgb_ug RGB_EFR &ext_power EP_TOG &rgb_ug RGB_EFF &rgb_ug RGB_BRI &trans &kp HOME &kp PG_DN &kp END | ||
>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
>; | |
>; |
&none &none &none &none &none &none &none &none &none &none &none &none &none &none | ||
&none &none &none &none &none &none &none &none &none &none &none &none &none &none | ||
&none &none &none &none &none &none &none &none &none &none &none | ||
>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
>; | |
>; |
label = "Encoder 1"; | ||
a-gpios = <&blackpill 40 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
b-gpios = <&blackpill 41 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
resolution = <4>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
resolution = <4>; | |
steps = <80>; |
&spi1 { | ||
compatible = "nordic,nrf-spim"; | ||
status = "okay"; | ||
mosi-pin = <25>; | ||
// Unused pins, needed for SPI definition, but not used by the ws2812 driver itself. | ||
sck-pin = <27>; | ||
miso-pin = <28>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&spi1 { | |
compatible = "nordic,nrf-spim"; | |
status = "okay"; | |
mosi-pin = <25>; | |
// Unused pins, needed for SPI definition, but not used by the ws2812 driver itself. | |
sck-pin = <27>; | |
miso-pin = <28>; | |
&pinctrl { | |
spi3_default: spi3_default { | |
group1 { | |
psels = <NRF_PSEL(SPIM_MOSI, 0, 25)>; | |
}; | |
}; | |
spi3_sleep: spi3_sleep { | |
group1 { | |
psels = <NRF_PSEL(SPIM_MOSI, 0, 25)>; | |
low-power-enable; | |
}; | |
}; | |
}; | |
&spi3 { | |
compatible = "nordic,nrf-spim"; | |
status = "okay"; | |
pinctrl-0 = <&spi3_default>; | |
pinctrl-1 = <&spi3_sleep>; | |
pinctrl-names = "default", "sleep"; |
a-gpios = <&blackpill 40 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
b-gpios = <&blackpill 41 (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; | ||
resolution = <4>; | ||
status = "disabled"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have it on good authority that the sensors
node actually belongs in the overlay and should be referred to from the keymap if necessary.
status = "disabled"; | |
status = "disabled"; | |
sensors { | |
compatible = "zmk,keymap-sensors"; | |
sensors = <&encoder_1>; | |
triggers-per-rotation = <20>; | |
}; |
|
||
sensors { | ||
compatible = "zmk,keymap-sensors"; | ||
sensors = <&encoder_1>; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sensors { | |
compatible = "zmk,keymap-sensors"; | |
sensors = <&encoder_1>; | |
}; |
ZMK is currently not accepting any new shields for keyboards. Please make a module instead. |
Board/Shield Check-list
.zmk.yml
metadata file added&pro_micro
used in favor of&pro_micro_d/a
if applicable.conf
file has optional extra features commented out