Jesse Vincent
d931ae1efa
Merge pull request #20 from keyboardio/bug/numlock-sync-report-spam
...
Bug/numlock sync report spam
6 years ago
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
Jesse Vincent
f9e1578614
Merge pull request #19 from keyboardio/f/license-update-and-contributing
...
License clarification & CONTRIBUTING.md
6 years ago
Gergely Nagy
54b7a80967
Add CONTRIBUTING.md
...
Copied from Kaleidoscope, as it is applicable here too.
Signed-off-by: Gergely Nagy <algernon@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
120d2d716e
Merge pull request #13 from jamadagni/patch-1
...
Add documentation for recently added color properties
7 years ago
Shriramana Sharma
121219943c
Add documentation for recently added color properties
7 years ago
Jesse Vincent
2060a2a704
Merge pull request #12 from keyboardio/f/settable-color
...
Allow setting the highlight color & the breathe hue
7 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
ff1d59a821
Merge pull request #10 from keyboardio/h/led-brightness-vs-power-fix
...
Dim the numpad color down from 255 to 160.
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
2bdc07b7bd
Merge pull request #8 from keyboardio/f/plugin-v2
...
Updated to use the new plugin APIs
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
Jesse Vincent
28bd356ca0
Merge pull request #5 from tchernomax/NoKey
...
Don't enable LED on Key_NoKey
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
Jesse Vincent
1333f30252
Switch to not trying to use 'Numlock' as a toggle.
7 years ago
Jesse Vincent
45a71751e8
Merge pull request #12 from keyboardio/f/numlock-sync
...
Sync the NUMPAD layer state with the host
7 years ago
Gergely Nagy
0943911786
Use kaleidoscope::hid instead of Keyboard directly
...
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Gergely Nagy
a1c0fdfb42
Sync the NUMPAD layer state with the host
...
Instead of trying to track numlock ourselves, rely on the host telling us what
it thinks the state is. This is much more reliable than what we were doing, and
hopefully fixes most of - if not all - the issues we were having with NumLock.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Jesse Vincent
393bba00ba
Fix for a deprecated API
7 years ago
Jesse Vincent
ad94e4dade
Merge pull request #9 from keyboardio/f/no-macro
...
Use an event loop hook instead of requiring a macro to detect NumLock
7 years ago
Gergely Nagy
1d1affb71b
Use an event loop hook instead of requiring a macro to detect NumLock
...
Requiring the end-user to use a macro to have the NumLock effect is a bit
confusing. We can do better than that, by using an event handler hook, and
catching `Keypad_NumLock` presses, and toggle on keypress.
This way, the macro is not necessary, and all the user has to do, is to use the
plugin, configure `numPadLayer`, and done.
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Jesse Vincent
74bd0d88a2
Update Makefile with OSX fixes and new paths
7 years ago
Gergely Nagy
475e9b531f
Merge pull request #8 from keyboardio/f/led-api-update
...
Updated to use the new LEDMode/LEDControl API
7 years ago
Gergely Nagy
da0c998760
Updated to use the new LEDMode/LEDControl API
...
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Jesse Vincent
9fa29b709d
Turn off the LEDs when exiting NumLock mode.
7 years ago
Jesse Vincent
6dc23db20b
When figuring out which keys to light up with LEDs: Switch to looking up the numpad keys based on the currently active layer
7 years ago
Jesse Vincent
c575fd0d52
When in numlock, we should only light up the numpad keys, not everything else
8 years ago
Jesse Vincent
b9f7ac0669
Merge pull request #6 from keyboardio/h/highlight-only-flagless
...
Highlight only those keys that have no flag set
8 years ago
Gergely Nagy
92050c2ab7
Highlight only those keys that have no flag set
...
Instead of trying to exclude layer keys, exclude everything with a flag. Thus,
only the basic keys will receive the highlighting treatment, and the rest,
`Prog`, `Any` and the layer keys will not.
Thanks to @chughes87 for the report!
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
d603ecf7c0
Merge pull request #5 from keyboardio/h/numlock-diffcolor
...
Highlight changed keys on the NumLock layer, not just NumPad ones
8 years ago
Gergely Nagy
23b341e2b3
Skip layer switching keys when it comes to highlighting
...
Together with the previous, this fixes keyboardio/Kaleidoscope#149 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago