-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get started with LEDControl documentation
Signed-off-by: Evy Bongers <[email protected]>
- Loading branch information
1 parent
d2a79b0
commit 1714765
Showing
1 changed file
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,54 @@ | ||
# Kaleidoscope-LEDControl | ||
|
||
This is a plugin for [Kaleidoscope][fw], for controlling the LEDs, and LED | ||
effects. | ||
effects. It is also a building block for plugins that control LEDs. | ||
|
||
[fw]: https://github.com/keyboardio/Kaleidoscope | ||
|
||
## Using the extension | ||
|
||
## Plugin methods | ||
|
||
### `.next_mode(void)` | ||
|
||
> Activates the next LED mode. cycles to the first LED mode if the current LED | ||
> mode is the last one. | ||
### `.prev_mode(void)` | ||
|
||
> Activates the previous LED mode. cycles to the last LED mode if the current | ||
> LED mode is the first one. | ||
### `.set_mode(uint8_t mode_id)` | ||
### `.get_mode_index()` | ||
### `.get_mode()` | ||
### `.refreshAll()` | ||
### `.setCrgbAt(uint8_t led_index, cRGB crgb)` | ||
### `.setCrgbAt(KeyAddr key_addr, cRGB color)` | ||
### `.getCrgbAt(uint8_t led_index)` | ||
### `.getCrgbAt(KeyAddr key_addr)` | ||
### `.syncLeds(void)` | ||
### `.set_all_leds_to(uint8_t r, uint8_t g, uint8_t b)` | ||
### `.set_all_leds_to(cRGB color)` | ||
### `.setSyncInterval(uint8_t interval)` | ||
### `.setBrightness(uint8_t brightness)` | ||
### `.getBrightness()` | ||
|
||
### `.onSetup()` | ||
### `.setup(void)` | ||
### `.onKeyEvent(KeyEvent &event)` | ||
### `.afterEachCycle()` | ||
### `.update(void)` | ||
|
||
> Triggers the currently active LED mode to update. It is up to the LED mode to | ||
> handle this correctly. | ||
### `.refreshAt(KeyAddr key_addr)` | ||
|
||
> Triggers the currently active LED mode to refresh the LED at the specified key | ||
> address. | ||
### `.activate(LEDModeInterface *plugin)` | ||
### `.disable()` | ||
### `.enable()` | ||
### `.isEnabled()` |