-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Underglow overlays for nice_nano don't work on nice_nano_v2 #885
Comments
Zephyr seems to support board revisions, maybe that could help? |
I just got it to work, it's pretty easy actually once you figure out the filename conventions: malinges/zmk@08674fc |
@malinges board revisions seem neat! I'm a bit worried about backwards compatibility however with how we currently have them set up. I'm not sure if it's possible to redirect a board name to another board+revision. |
@Nicell agreed, the main issue with this approach is that it's a breaking change. Unless it's possible to create some kind of board alias, but I don't have enough experience with ZMK/Zephyr to know if it's even possible (and a quick Google search doesn't come up with anything promising). But yes, I quickly chatted about this being a breaking change on Discord (#boards-shields) and a few people seemed (legitimately) concerned about it too. Although maybe it's less of an issue for the nice!nano v2 since it's only been supported by ZMK for around 1.5 month? ;-) As a last resort, do you think it could be possible to duplicate the nano v2's definitions for a given deprecation period, then get rid of the old defs once the deprecation period "expires"? Unfortunately I'm not familiar enough with ZMK's development process to know what would be a satisfying solution here. |
Interestingly, Zephyr has both a board alias system and a board deprecation system. The board deprecation system doesn't help since it doesn't look configurable from the application side (so ZMK can't add its own deprecated boards to the list). The board alias system however is configurable and, using a little trick, can be used to override the board revision too! The only downside is that it requires the path to the board aliases file to be specified through an environment variable (because the whole system is meant as a developer productivity shortcut, not a board deprecation system, since this already exists). Not sure if this could be integrated cleanly into ZMK. But still, it works:
|
To sum everything up, here are the 3 available options AFAICT:
|
I just included the #include <../boards/shields/kyria/boards/nice_nano.overlay> |
Could someone detail the process for implementing the manual workaround for this? I've got a corne running off the Nice!Nano v2 and believe that I am seeing the same issue described here (RGB underglow not working). How would I go about manually defininf the spi1 and led_strip details in my keymap file, as recommended by @malinges? |
@Poent This is what I did for Reviung 41: https://github.com/Ardakilic/zmk-config/blob/master/config/reviung41.keymap#L12-L47 I simply copied the contents of the overlay file to my keymap |
Hi, just to bring this topic active again, this method isn't working for Sofle RGV v2.1 with nice!nano v2 my compilation break and when I use this SPI1 lines, it didn't enable the underglow either |
@infused-kim thanks for sharing this, I did try https://github.com/killua99/zmk-config/actions/runs/2074274430 but not luck. I'm starting to think is soldering issues rather firmware. I follow some guide https://docs.beekeeb.com/build-guide/sofle-rgb-v2.1-soflekeyboard-build-log-guide-with-photos#rgb-leds-for-the-right-hand to sold the leds but I not sure if that is correct. I'll keep trying builds and resold some leds to try it out. |
@killua99 / @infused-kim Are either of you using the version of the Sofle purchased from Keyhive? This is the one I have and it is very non-standard. I'm working on adding the board to ZMK and enabling as many features as I can (currently key grid is fixed and underglow LEDs are working). If either of you have this board and are interested, let me know and I'll post a link to my fork. Regarding the options above, my preference/recommendation (take with a grain of salt because I'm new here) would be for duplication for a deprication period. |
@maximus5684 from beekeeb I read the warning about the Keyhive version, I'm not sure if beekeeb sells that version. |
The Sofle maintainers opened an issue about ZMK firmware support. josefadamcik/SofleKeyboard#142 |
I Think this issue can be close. We should have a note on the documentation page for new people. I took the time to added and it just need to be merge. |
Does anyone else have problem with RGB underglow after ZMK swtiched to new Zephyr and pincontrol syntax ? `#include <dt-bindings/led/led.h> &pinctrl {
}; &spi1 {
}; / { |
I believe this issue is resolved in practice by #1499 since Pete added v2 overlays for every shield that has a v1 overlay. |
RGB needs mostlikly 5V minimum to drive blue leds. But the control pin can be 3V3. |
The existing
nice_nano.overlay/conf
s for shield underglow don't apply to thenice_nano_v2
.We might want to instead make general spi definitions in the shield DT for
&pro_micro
pins.The text was updated successfully, but these errors were encountered: