-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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(boards): Add 1up sweet 16 macropad #1102
base: main
Are you sure you want to change the base?
Conversation
&none &none &none &none | ||
&none &none &none &none | ||
&none &none &trans &bt BT_CLR |
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 &trans &bt BT_CLR | |
&none &none &none &none | |
&none &none &none &none | |
&none &none &trans &bt BT_CLR |
Formatting issues uncovered by pre-commit
.
&spi1 { | ||
compatible = "nordic,nrf-spim"; | ||
status = "okay"; | ||
mosi-pin = <45>; | ||
// Unused pins, needed for SPI definition, but not used by the ws2812 driver itself. | ||
sck-pin = <5>; | ||
miso-pin = <7>; |
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.
Migration to the pinctrl
subsystem as part of the Zephyr 3.2 upgrade, and the &spi3
bus per #1746. (I'm sure you're familiar with rebasing et al...)
&spi1 { | |
compatible = "nordic,nrf-spim"; | |
status = "okay"; | |
mosi-pin = <45>; | |
// Unused pins, needed for SPI definition, but not used by the ws2812 driver itself. | |
sck-pin = <5>; | |
miso-pin = <7>; | |
&pinctrl { | |
spi3_default: spi3_default { | |
group1 { | |
psels = <NRF_PSEL(SPIM_MOSI, 1, 13)>; | |
}; | |
}; | |
spi3_sleep: spi3_sleep { | |
group1 { | |
psels = <NRF_PSEL(SPIM_MOSI, 1, 13)>; | |
low-power-enable; | |
}; | |
}; | |
}; | |
&spi3 { | |
compatible = "nordic,nrf-spim"; | |
status = "okay"; | |
pinctrl-0 = <&spi3_default>; | |
pinctrl-1 = <&spi3_sleep>; | |
pinctrl-names = "default", "sleep"; |
|
||
kscan0: kscan_0 { | ||
compatible = "zmk,kscan-gpio-matrix"; | ||
label = "KSCAN"; |
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 = "KSCAN"; | |
wakeup-source; |
label
is marked as deprecated for kscan
nodes. wakeup-source
is now required in order to allow keypresses to wake the keyboard from deep sleep.
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.
Forgot this:
- Please rename this file to
nice_nano_v2.overlay
, for consistency. - After making the
pinctrl
and&spi3
changes, make a copy of it in the same folder namednice_nano.overlay
so just in case someone builds one of these with a v1 nice!nano, it will behave the same way.
#include <dt-bindings/zmk/matrix_transform.h> | ||
|
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.
#include <dt-bindings/zmk/matrix_transform.h> |
This isn't actually being used.
Adding 1up sweet 16. Still needs to be tested on real hardware.
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