Click to view our Accessibility Statement or contact us with accessibility-related questions
Last gave you $10 to spend on your first purchase on Drop! Sign Up to learn more.
Showing 1 of 360 conversations about:
chongjiahui
22
Sep 1, 2018
bookmark_border
is it possible to configure it such that the keys will only light up upon input?
Sep 1, 2018
DarkMio
136
Sep 1, 2018
bookmark_border
chongjiahuiI am actually writing something like that right now: https://i.miosblog.de/f8B9p.mp4
Sep 1, 2018
chongjiahui
22
Sep 1, 2018
bookmark_border
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?
Sep 1, 2018
Flipdoubt
4
Sep 1, 2018
bookmark_border
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?
Sep 1, 2018
DarkMio
136
Sep 1, 2018
bookmark_border
FlipdoubtIn theory you could do that, however, in the current state I'm doing it, it just allows the one or the other.
Sep 1, 2018
DarkMio
136
Sep 1, 2018
bookmark_border
chongjiahuiI downloaded the QMK stuff and then wrote the C code. That's about it.
What do you mean about fading out?
Sep 1, 2018
Flipdoubt
4
Sep 1, 2018
bookmark_border
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?
Sep 1, 2018
DarkMio
136
Sep 1, 2018
bookmark_border
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
Sep 1, 2018
Flipdoubt
4
Sep 1, 2018
bookmark_border
DarkMioThink, thonk, that's pretty cool.
Sep 1, 2018
dudelsack
2
Sep 2, 2018
bookmark_border
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....
Sep 2, 2018
DarkMio
136
Sep 2, 2018
bookmark_border
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.
Sep 2, 2018
cryzed
27
Sep 3, 2018
bookmark_border
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?
Sep 3, 2018
DarkMio
136
Sep 3, 2018
bookmark_border
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
Sep 3, 2018
Eagle1337
37
Sep 6, 2018
bookmark_border
DarkMioI tried to compile your firmware on your github without success, it threw out a few errors in keymap.c
Sep 6, 2018
DarkMio
136
Sep 6, 2018
bookmark_border
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
Sep 6, 2018
Eagle1337
37
Sep 6, 2018
bookmark_border
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.
Sep 6, 2018
jinxPad
9
Oct 13, 2018
bookmark_border
DarkMioThat looks awesome, I'd love to have this effect, but github just goes way over my head >_<
Oct 13, 2018
UsernameGoesHere
2
Keyboard Club Member
Oct 28, 2018
bookmark_border
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.
Oct 28, 2018
DarkMio
136
Oct 28, 2018
bookmark_border
UsernameGoesHereThe animation probably needs some changes in finding adjacent LEDs.
Oct 28, 2018
FonderPrism
35
Nov 6, 2018
bookmark_border
DarkMioCould you point me to where in the code the adjacent LEDs are found? I didn't see anything obvious at a quick glance.
Nov 6, 2018
jimmyplaysdrums
19
Dec 14, 2018
bookmark_border
DarkMioYour work is awesome! Could you make a tutorial on how to add your code from github to our CTRL keyboard?
Dec 14, 2018
xaphrael1661
0
Jun 1, 2019
bookmark_border
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!
Jun 1, 2019
View Full Discussion
Related Posts
Trending Posts in Mechanical Keyboards