Gergely Nagy
bfe38620bd
Updated to use the new plugin APIs
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
56f85a7607
Make astyle happy
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
UniversalTimeCodeGit
c33ec4ba7e
Implement Heatmap Reset Method
...
This commit includes the resetMap method which is used to start the heatmap from 0. I also use it as a workaround for my map starting up with an "infinitely hot" key
7 years ago
Maxime de Roucy
a6ad9ab2aa
major rewrite: allow the user to set his own heat_color
...
Change the algorithm so the hotest key is always at the hotest color.
Add comments.
Other changes.
7 years ago
Donald Curtis
35c8352ef0
Fix update check was always checking.
...
LED update should happen when the timer is past the end_time_, not it is
less than the end_time_.
7 years ago
Gergely Nagy
dc0b2a2b91
Updated to use the new LEDMode/LEDControl API
...
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
7 years ago
Jesse Vincent
8c35edcfb5
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
Jesse Vincent
df3e79a56a
keyToggledO* camelcasing
8 years ago
Gergely Nagy
95b34d4eb0
Kaleidoscope Style Guide conformance
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
be19287112
virtual void begin(void) final is redunant and makes the linter unhappy
8 years ago
Jesse Vincent
17487f9c26
astyle with current project style guidelines
8 years ago
Jesse Vincent
0489fd9196
make astyle
8 years ago
Gergely Nagy
7a5a1b2b33
Improved timer handling
...
Instead of calculating the elapsed time every time we check the timer,
calculate the projected end-time when we start the timer, and just
compare millis() against that.
Also removes the `.configure()` method, in favour of making the
`timeOut` property public.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
ce45b212d7
The Big Rename
...
Rename the library to Kaleidoscope-Heatmap, and follow up with other renames.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
f2787a5692
Use a timer instead of a loop counter
...
Loop counters are an unreliable way to track time, use a timer instead.
Fixes #2 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
e7e4ba0690
Move the static globals into the Heatmap object
...
Fixes #3 .
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
e183d12c2d
Drop updateFrequency to 50 cycles
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
9aced5ccbd
Update heatColors to look a bit nicer on the keyboard
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
54538b42dd
Fix the cap computation
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
fa1e3e3669
computeColor: Fix the color order
...
The order is BGR, not RGB.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
3d07ca4614
Fix the key counting
...
Bail out if the key did NOT toggle on, instead of bailing out only if it did.
This addresses the key count computation part of #1 . (Shifting looks fine, after
this change)
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
ba0b69bb89
Use the new, double-add protected hook functions
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
386f893829
Updated to use Keyboardio-LEDControl
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
a722fea88d
Initial import
...
Lifted out of the monolithic Akela library.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago