-
Notifications
You must be signed in to change notification settings - Fork 59
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
indicator-underglow: allow omissions; allow right-hand battery indicators. #29
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
* SPDX-License-Identifier: MIT | ||
*/ | ||
|
||
|
||
#include "glove80.dtsi" | ||
#include "glove80_rh-pinctrl.dtsi" | ||
|
||
|
@@ -18,6 +17,7 @@ | |
zmk,underglow = &led_strip; | ||
zmk,backlight = &back_led_backlight; | ||
zmk,battery = &vbatt; | ||
zmk,underglow-indicators = &underglow_indicators; | ||
}; | ||
|
||
back_led_backlight: pwmleds { | ||
|
@@ -37,6 +37,24 @@ | |
vbatt: vbatt { | ||
compatible = "zmk,battery-nrf-vddh"; | ||
}; | ||
|
||
/* | ||
MoErgo 40 LEDs | ||
|
||
10 16 22 28 34 | ||
6 11 17 23 29 35 | ||
7 12 18 24 30 36 | ||
8 13 19 25 31 37 | ||
9 14 20 26 32 38 | ||
15 21 27 33 39 | ||
2 1 0 | ||
5 4 3 | ||
*/ | ||
|
||
underglow_indicators: underglow-indicators { | ||
compatible = "zmk,underglow-indicators"; | ||
// Default: no indicators. Only `bat-self` is supported at the moment. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thought I'd stub this out for discoverability. Per the PR description, this is actually kind of a trap, because it doesn't work with the default definition of the magic key without pulling in an upstream bugfix. |
||
}; | ||
}; | ||
|
||
&spi3 { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,30 +6,30 @@ description: Underglow indicators | |
compatible: "zmk,underglow-indicators" | ||
|
||
properties: | ||
bat-lhs: | ||
bat-self: | ||
type: array | ||
required: true | ||
bat-rhs: | ||
default: [] | ||
bat-other: | ||
type: array | ||
required: true | ||
default: [] | ||
capslock: | ||
type: int | ||
required: true | ||
default: -1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure what the right way to define "nothing" was here, since I don't think these are nullable. 🤷 |
||
numlock: | ||
type: int | ||
required: true | ||
default: -1 | ||
scrolllock: | ||
type: int | ||
required: true | ||
default: -1 | ||
layer-state: | ||
type: array | ||
required: true | ||
default: [] | ||
ble-state: | ||
type: array | ||
required: true | ||
default: [] | ||
usb-state: | ||
type: int | ||
required: true | ||
default: -1 | ||
output-fallback: | ||
type: int | ||
required: true | ||
default: -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.
I'm pretty sure this is right, but I didn't exhaustively check it.