Skip to content

Conversation

dnppp
Copy link

@dnppp dnppp commented Jan 23, 2019

Playing with a new Kira and tried to add a basic screensaver-like capability to the firmware to get familiar with the code base.

I'm sleeping not that far from my keyboard, so I wanted to stop the LED lightning if I stop typing for too long.

Plus the Kira always animates to 'wave' by default and I felt it was weird to have animations while I'm typing. So the PR allows us to pause animation when the typist press some key, and resume it some x ms later.

To do that kind of stuff, I tried a bit to look first at the KLL spec, but the 'Timing' section doesn't seem to do the trick. Then I looked a bit at interrupts in the code base but it seemed too messy (architecture dependent?), so I just ended by using the Periodic_* functions on a larger timescale (see 2nd commit).

By default, the screensaver option is disabled (see comments in Macro/PixelMap/capabilities.kll to enable it, 3rd commit).

dnppp and others added 5 commits January 24, 2019 06:34
… screensaver non-idle time; fill Screensaver_periodic function; define screensaver default parameters (disabled by default)
non Kira keyboards builds seems to fail with the proposed  'U[4-101,103-164,176-221,224-231,240-289]' (although the numbers are taken from the doc?), so disable it and put it only on Kira specific layout (kll repository)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant