Jesse Vincent
e3acde9419
rename a variable that didn't match the style guide
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
6 years ago
Jesse Vincent
c6886b09fb
Change cleanupDone to numlockUnsynced to better represent what it does
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
6 years ago
Jesse Vincent
efbf158b13
Bring back the LED breathing effect
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
6 years ago
Jesse Vincent
8fb50b2415
Only run our "toggle numlock mode" once upon toggle of the layer
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
6 years ago
Jesse Vincent
79996b7216
Only try to reset the numlock led if we actually haven't done the
...
cleanup
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
6 years ago
Jesse Vincent
7c1a5cea95
Refactoring. no functional changes
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
6 years ago
Jesse Vincent
b491146f33
Extract a couple methods and rename a variable
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
6 years ago
Jesse Vincent
380a2e8a28
rename some variables to make them clearer
...
Signed-off-by: Jesse Vincent <jesse@keyboard.io>
6 years ago
Gergely Nagy
358e58a6ef
Relicense under GPLv3 (only), and add headers.
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
454c0d5b06
Drop the V1 plugin API compatibility code
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Jesse Vincent
386787f1ca
Merge pull request #7 from MartyGentillon/master
...
Numpad now properly restores the former numlock state on deactivation.
6 years ago
Gergely Nagy
604ebc448d
Make the NumLock breathe's hue configurable too
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
4b04d506c4
Make the numpad highlight color configurable
...
Fixes #11 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
6190f55c57
Dim the numpad color down from 255 to 160.
...
Having it at the brightest uses too much power, and may result in power use
surges when switching between LED modes and NumPad, which in turn can force the
operating system to disable the whole device. To avoid this, lower the
brightness to 160, a carefull tuned value, also used by the `solidRed` mode in
the factory firmware.
Fixes #9 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
115e439a4c
Updated to use the new plugin APIs
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Marty Gentillon
effa6eba15
Numpad now properly restores the former numlock state on deactivation.
...
Test procedure:
1. Make sure numlock is off on host machine.
2. Activate num layer. Confirm, numlock is now on.
3. Deactivate num layer. Confirm, numlock is now off.
4. Using another keyboard, activate numlock on host machine.
5. Activate num layer. Confirm, numlock is still on.
6. Deactivate num layer. Confirm, numlock is still on.
Prior to this commit, step 6 resulted in numlock being off.
see https://github.com/keyboardio/Kaleidoscope-NumPad/pull/2
broken https://github.com/keyboardio/Kaleidoscope-NumPad/pull/3
see https://github.com/keyboardio/Kaleidoscope-NumPad/issues/1
fixes https://github.com/keyboardio/Kaleidoscope-NumPad/issues/6
7 years ago
Gergely Nagy
78710d0247
Merge pull request #3 from MartyGentillon/master
...
NumPad now restores the former num lock state on deactivation.
7 years ago
Gergely Nagy
3e7b4cb737
Merge pull request #2 from edanaher/fix-numlock-off
...
Send numlock keypress when disabling the numpad layer.
7 years ago
Maxime de Roucy
deb92d85dd
Don't enable LED on Key_NoKey
7 years ago
Marty Gentillon
d5369288fb
NumPad now restores the former num lock state on deactivation.
7 years ago
Evan Danaher
1017cfd600
Send numlock keypress when disabling the numpad layer.
...
This avoids the OS being stuck with Numlock on, which leaves the LED on
if other keyboard are attached, and breaks FVWM.
See keyboardio/Model01-Firmware#42
7 years ago
Jesse Vincent
952198a98a
It appears that when the BIOS isn't reporting the keyboard LED state back to the keyboard, the old code resulted in sending far too many key reports. (Specifically, out of controll key repeat on OSX)
7 years ago
Jesse Vincent
1fb97c958b
That renaming was slightly over-aggressive
7 years ago
Jesse Vincent
3de82eb6a4
Renaming
7 years ago