Gergely Nagy
8becec569e
Add support for highlighting layer keys too
...
Fixes #2 , thanks @ToyKeeper!
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
7 years ago
Gergely Nagy
de3d793b40
Move the modifier activity check into `isModifierActive`
...
This way, the body of the loop in `loopHook` becomes even simpler.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
7 years ago
Gergely Nagy
b60937f9db
Combine modifier & modifier activeness checking
...
The goal is to have a single `if` for checking if we should highlight a key, so
that we can later have an `else if` branch to highlight non-traditional
modifiers.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
7 years ago
Gergely Nagy
58d07f1e06
Lift out `isModifier` into its own function
...
To make it easier to extend the plugin, to teach it to highlight keys other than
the traditional modifiers, lift the code that checks for a modifier into its own
function.
No functional change, just refactoring.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
7 years ago
Jesse Vincent
f2d73d4d71
Update Makefile to fix OS X build
8 years ago
Jesse Vincent
13646a6581
port to new hid facade
8 years ago
Jesse Vincent
9953d874a6
CamelCaseifcation of LED related functions
...
s/led_set_crgb_at/setCrgbAt/
s/hsv_to_rgb/hsvToRgb/
s/led_get_crgb_at/getCrgbAt/
s/led_sync/syncLeds/
s/get_led_index/getLedIndex/
s/send_led_data/sendLedData/
s/led_power_fault/ledPowerFault/
8 years ago
Gergely Nagy
df8a2d1a50
Revert "Turn the LED off if the modifier is inactive"
...
This reverts commit f3d4961578
, because the
interaction with LED modes with it is worse than the issue it fixed.
8 years ago
Gergely Nagy
f3d4961578
Turn the LED off if the modifier is inactive
...
Fixes #1 . But the consequence is that the plugin will not play nicely with LED
modes that do not refresh.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
28a3c82ae8
README.md: Properties are not methods
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
8d071acde2
Update to work with the latest Ranges APIs
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
8f0cfb753c
Kaleidoscope Style Guide conformance
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
06056f9a59
virtual void begin(void) final is redunant and makes the linter unhappy
8 years ago
Jesse Vincent
5273b43ba0
astyle with current project style guidelines
8 years ago
Jesse Vincent
1f8fc546e5
make astyle
8 years ago
Jesse Vincent
41970ac689
New build infrastructure
8 years ago
Jesse Vincent
b8be8d9fe1
Update example for new key defs
8 years ago
Jesse Vincent
55e5068cfc
Update for new modifier names
8 years ago
Gergely Nagy
115c54ef14
README: Add a "Dependencies" section
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
79b791d6e7
Test the plugin with Travis CI
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
d5d3b46e31
The Big Rename
...
Renamed the library to Kaleidoscope-LED-ActiveModColor, and followed up with
other renames.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
fbe6293655
Use the new, double-add protected hook functions
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
23368b2161
Updated to use the Keyboardio-LEDControl library
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
7956b83e7d
Add an example
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
9dd4b107c6
Move to the keyboardio organization
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
fc0a16651f
Initial import
...
Extracted from algernon/Model01-Sketch.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago