diff options
| author | Drashna Jaelre <drashna@live.com> | 2020-05-18 06:05:35 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-18 06:05:35 -0700 |
| commit | d0e0202b272a28d6a1e7f0d059396067bb861272 (patch) | |
| tree | fb1c7fc315cf53846bda0f55985232e71ee9ce82 /docs/feature_rgb_matrix.md | |
| parent | e55d55edc08d5a5ca557e3ff442ca47ccd731067 (diff) | |
| download | qmk_firmware-d0e0202b272a28d6a1e7f0d059396067bb861272.tar.gz qmk_firmware-d0e0202b272a28d6a1e7f0d059396067bb861272.zip | |
Add query functions for RGB Light and RGB Matrix (#8960)
* Add additional query functions for RGBLIGHT
* Add additional query functions for RGB Matrix
* Change names of enable check functions
* Fix macro for rgb matrix takeover of rgblight functions
* Add documentation for rgb_matrix_get_hsv()
* Add *_get_hsv function to rgblight
Diffstat (limited to 'docs/feature_rgb_matrix.md')
| -rw-r--r-- | docs/feature_rgb_matrix.md | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/docs/feature_rgb_matrix.md b/docs/feature_rgb_matrix.md index 2cec55ee7..15057827c 100644 --- a/docs/feature_rgb_matrix.md +++ b/docs/feature_rgb_matrix.md | |||
| @@ -437,12 +437,16 @@ Where `28` is an unused index from `eeconfig.h`. | |||
| 437 | |`rgb_matrix_sethsv_noeeprom(h, s, v)` |Set LEDs to the given HSV value where `h`/`s`/`v` are between 0 and 255 (not written to EEPROM) | | 437 | |`rgb_matrix_sethsv_noeeprom(h, s, v)` |Set LEDs to the given HSV value where `h`/`s`/`v` are between 0 and 255 (not written to EEPROM) | |
| 438 | 438 | ||
| 439 | ### Query Current Status :id=query-current-status | 439 | ### Query Current Status :id=query-current-status |
| 440 | |Function |Description | | 440 | |Function |Description | |
| 441 | |-----------------------|-----------------| | 441 | |---------------------------------|---------------------------| |
| 442 | |`rgb_matrix_get_mode()` |Get current mode | | 442 | |`rgb_matrix_is_enabled()` |Gets current on/off status | |
| 443 | |`rgb_matrix_get_hue()` |Get current hue | | 443 | |`rgb_matrix_get_mode()` |Gets current mode | |
| 444 | |`rgb_matrix_get_sat()` |Get current sat | | 444 | |`rgb_matrix_get_hue()` |Gets current hue | |
| 445 | |`rgb_matrix_get_val()` |Get current val | | 445 | |`rgb_matrix_get_sat()` |Gets current sat | |
| 446 | |`rgb_matrix_get_val()` |Gets current val | | ||
| 447 | |`rgb_matrix_get_hsv()` |Gets hue, sat, and val and returns a [`HSV` structure](https://github.com/qmk/qmk_firmware/blob/7ba6456c0b2e041bb9f97dbed265c5b8b4b12192/quantum/color.h#L56-L61)| | ||
| 448 | |`rgb_matrix_get_speed()` |Gets current speed | | ||
| 449 | |`rgb_matrix_get_suspend_state()` |Gets current suspend state | | ||
| 446 | 450 | ||
| 447 | ## Callbacks :id=callbacks | 451 | ## Callbacks :id=callbacks |
| 448 | 452 | ||
