Click to view our Accessibility Statement or contact us with accessibility-related questions
chongjiahui
22
Sep 1, 2018
is it possible to configure it such that the keys will only light up upon input?
DarkMio
137
Sep 1, 2018
chongjiahuiI am actually writing something like that right now: https://i.miosblog.de/f8B9p.mp4
chongjiahui
22
Sep 1, 2018
DarkMiovery nice, will they be able to fade out? may i know which are the resources that will allow me to do something like that?
Flipdoubt
4
Sep 1, 2018
DarkMioThat's sweet. I too would love to see them fade out.
Do custom effects like this get added to the FN+D list of effects to toggle?
DarkMio
137
Sep 1, 2018
FlipdoubtIn theory you could do that, however, in the current state I'm doing it, it just allows the one or the other.
DarkMio
137
Sep 1, 2018
chongjiahuiI downloaded the QMK stuff and then wrote the C code. That's about it.
What do you mean about fading out?
Flipdoubt
4
Sep 1, 2018
DarkMioby fading out I think he means fading to the previous state. So imagine the backlights are all white and turn red with each keystroke. One second later red fades to white.
I looked at your github repo. Not sure where to start learning to do this. Can you point to some tutorials you like?
DarkMio
137
Sep 1, 2018
FlipdoubtThere are no tutorials for this keyboard. The entire LED logic is hidden in
qmk_firmware/tmk_core/protocol/arm_atsam/led_matrix.c
You're looking for led_matrix_run(led_setup_t *f). Other than that: Good luck.
Here's my code producing fading: https://github.com/DarkMio/qmk_firmware/blob/master/tmk_core/protocol/arm_atsam/led_matrix.c#L338 Demonstration: https://i.miosblog.de/0z6SB.mp4
Flipdoubt
4
Sep 1, 2018
DarkMioThink, thonk, that's pretty cool.
dudelsack
2
Sep 2, 2018
DarkMioThanks for the link to your repo! I played around with your changesand roughly got the led keyfade working as an option for keymaps.
For example, this config https://github.com/matsprehn/qmk_firmware/blob/master/keyboards/massdrop/ctrl/led_programs.c#L69 ends up with this effect: https://tinyurl.com/yak8bsr3
Another example: https://github.com/matsprehn/qmk_firmware/blob/master/keyboards/massdrop/ctrl/led_programs.c#L63
https://tinyurl.com/yclbcxjw
The keyfade works together with scroll, subtract, no effect, and over, though the implementation of over is kind of hacky at the moment....
DarkMio
137
Sep 2, 2018
dudelsackIf I find some dedication, I'll throw together a double buffered random colorizer with stepped colorization effects. Basically what I did here back then: https://www.lexaloffle.com/bbs/?tid=29507
Generate a pixel, offset by a row per frame.
EDIT: Here's something I threw together: https://i.miosblog.de/OElO2.mp4 I'll reduce the randomness of the colors.
cryzed
27
Sep 3, 2018
DarkMioMaybe I am completely misunderstanding the structure of the QMK repository, but why didn't you add your changes in `qmk_firmware/keyboards/massdrop/ctrl/keymaps/default/keymap.c` instead?
There are special functions `matrix_init_user`/`matrix_scan_user` and `process_record_user` (https://github.com/qmk/qmk_firmware/blob/master/docs/feature_macros.md) which are seemingly there to allow you to customize the keyboard's behavior. You can even use the keycodes there, instead of having to do your own magic.
Is it not possible from that position in the code to write to the RGB channels?
DarkMio
137
Sep 3, 2018
cryzedNot with Massdrops current implementation. They chose to stuff it directly into the tmk protocol, hence why I followed through with it. At some point, since the I2C is already supported by QMK, it might be changed and integrated with the QMK framework, but for now you gotta deal with whatever Massdrop implemented.
Here's what the effect look like: https://i.miosblog.de/nwFkl.mp4 - https://i.miosblog.de/h2X7h.mp4
Eagle1337
37
Sep 6, 2018
DarkMioI tried to compile your firmware on your github without success, it threw out a few errors in keymap.c
DarkMio
137
Sep 6, 2018
Eagle1337"some errors" are not really helpful. What did you do? I have a branch without my macros and just the lightning that is confirmed working here: https://github.com/darkmio/qmk_firmware/tree/ctrl_led_pattern
Eagle1337
37
Sep 6, 2018
DarkMiokeyboards/massdrop/ctrl/keymaps/default/keymap.c:79:9: error: 'desired_interpolation' undeclared (first use in this function) desired_interpolation[read_buffer][scan_code] = 1.0f; ^~~~~~~~~~~~~~~~~~~~~ it pops up a few times as an error.
The one I originally tried had think and thonk defined.
jinxPad
9
Oct 13, 2018
DarkMioThat looks awesome, I'd love to have this effect, but github just goes way over my head >_<
chongjiahuiAnyone get something like this working for the ALT? I tried using some of this code, but it makes any animated profile, not just ones with EF_PRESS, have all LEDs turn off.
DarkMio
137
Oct 28, 2018
UsernameGoesHereThe animation probably needs some changes in finding adjacent LEDs.
FonderPrism
35
Nov 6, 2018
DarkMioCould you point me to where in the code the adjacent LEDs are found? I didn't see anything obvious at a quick glance.
jimmyplaysdrums
20
Dec 14, 2018
DarkMioYour work is awesome! Could you make a tutorial on how to add your code from github to our CTRL keyboard?
xaphrael1661
0
Jun 1, 2019
dudelsackhey man i copied your 2nd led_programs.c file in the post above and flashed it to my CTRL - the animation with the light on key-press and fade out is exactly what i wanted. only question i had was how to change the colour to something else - it's by default red only. i've played around a bit with the colour codes and words from line 63 onwards but can't seem to get it to work. if you respond, thanks for your time!
PRODUCTS YOU MAY LIKE
Trending Posts in Mechanical Keyboards