Gergely Nagy
3b1e07361b
Rearrange the file layout in preparation of becoming a monorepo
...
Move the documentation to `doc/plugin/LEDEffect-Rainbow.md`, sources under
`src/kaleidoscope/plugin/` (appropriately namespaced). This is in preparation of
merging plugins into a single monorepo.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
6 years ago
Gergely Nagy
bfddd0a13c
Relicense under GPLv3 (only), and add headers.
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
8a77cdaaff
astyle
...
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
95789d3777
Add getters for brightness and update_delay
...
Makes it easier to implement #8 as a macro.
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Aaron Christianson
7ad05d2d93
fixed a show-stopping spelling error. updat_delay -> update_delay
7 years ago
Aaron Christianson
a1fadd9f75
added changes suggested in the PR discussion.
7 years ago
Aaron Christianson
e6f7aef63b
added methods to control delay time and updated the README
7 years ago
Gergely Nagy
73d9997b54
Use timers instead of ticks to time when to update the effects
...
Ticks depend on the speed of the main loop, and as such, are not a reliable way
to time animations. For this reason, use proper timers instead.
The update delay is set to 40ms, which appears to be a slow, relaxing animation,
and should be roughly in the ballpark the tick-based timing was, before speeding
up the main loop considerably.
Fixes #3 .
Signed-off-by: Gergely Nagy <algernon@keyboard.io>
7 years ago
Gergely Nagy
25cb263e6a
Updated to use the new LEDMode/LEDControl API
...
Signed-off-by: Gergely Nagy <kaleidoscope@gergo.csillger.hu>
8 years ago
Jesse Vincent
2e428d8ccc
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
953b58702c
cpplint-noisy cleanup
8 years ago
Jesse Vincent
85b96e0e85
destaticify
8 years ago
Jesse Vincent
d1fc67e45d
deconstify things we think we might want to let users configure
8 years ago
Jesse Vincent
0dabbc6f95
typo
8 years ago
Jesse Vincent
41ddb76fa8
indent error
8 years ago
Jesse Vincent
ae8407016b
wrong var name
8 years ago
Jesse Vincent
ea90ca09b0
Add a brightness API for the rainbow effects
8 years ago
Gergely Nagy
c564d298c7
Make the linter happy
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Jesse Vincent
d790a01bb2
astyle to pad operators
8 years ago
Jesse Vincent
b32d2737b8
astyle with current project style guidelines
8 years ago
Gergely Nagy
69a8a8830f
Mark the classes descendants of public LEDMode
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
dd734adb1c
The Big Rename
...
Renamed the library to Kaleidoscope-LEDEffect-Rainbow, and followed up with
other renames.
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
Gergely Nagy
86eaa90abd
Lifted out from Keyboardio-LEDControl
...
Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago