diff options
| author | Drashna Jaelre <drashna@live.com> | 2020-06-22 01:38:58 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-22 09:38:58 +0100 |
| commit | 98642ca02878741531105bd879c0d61110198b62 (patch) | |
| tree | befd24e847255379c60f9c77df53072245fa6b7b /docs | |
| parent | 82dc8faaf30a6b77ec715852c3841fde087b6b07 (diff) | |
| download | qmk_firmware-98642ca02878741531105bd879c0d61110198b62.tar.gz qmk_firmware-98642ca02878741531105bd879c0d61110198b62.zip | |
Improve keycode handling for RGB (#7677)
Co-authored-by: drashna <drashna@live.com>
Co-authored-by: noroadsleft <18669334+noroadsleft@users.noreply.github.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/feature_rgb_matrix.md | 11 | ||||
| -rw-r--r-- | docs/feature_rgblight.md | 4 |
2 files changed, 14 insertions, 1 deletions
diff --git a/docs/feature_rgb_matrix.md b/docs/feature_rgb_matrix.md index a4f434cbd..9604bdcc8 100644 --- a/docs/feature_rgb_matrix.md +++ b/docs/feature_rgb_matrix.md | |||
| @@ -186,8 +186,16 @@ All RGB keycodes are currently shared with the RGBLIGHT system: | |||
| 186 | |`RGB_VAD` | |Decrease value (brightness), increase value when Shift is held | | 186 | |`RGB_VAD` | |Decrease value (brightness), increase value when Shift is held | |
| 187 | |`RGB_SPI` | |Increase effect speed (does not support eeprom yet), decrease speed when Shift is held| | 187 | |`RGB_SPI` | |Increase effect speed (does not support eeprom yet), decrease speed when Shift is held| |
| 188 | |`RGB_SPD` | |Decrease effect speed (does not support eeprom yet), increase speed when Shift is held| | 188 | |`RGB_SPD` | |Decrease effect speed (does not support eeprom yet), increase speed when Shift is held| |
| 189 | |`RGB_MODE_PLAIN` |`RGB_M_P `|Static (no animation) mode | | ||
| 190 | |`RGB_MODE_BREATHE` |`RGB_M_B` |Breathing animation mode | | ||
| 191 | |`RGB_MODE_RAINBOW` |`RGB_M_R` |Full gradient scrolling left to right (uses the `RGB_MATRIX_CYCLE_LEFT_RIGHT` mode) | | ||
| 192 | |`RGB_MODE_SWIRL` |`RGB_M_SW`|Full gradient spinning pinwheel around center of keyboard (uses `RGB_MATRIX_CYCLE_PINWHEEL` mode) | | ||
| 189 | 193 | ||
| 190 | * `RGB_MODE_*` keycodes will generally work, but are not currently mapped to the correct effects for the RGB Matrix system | 194 | * `RGB_MODE_*` keycodes will generally work, but not all of the modes are currently mapped to the correct effects for the RGB Matrix system. |
| 195 | |||
| 196 | `RGB_MODE_PLAIN`, `RGB_MODE_BREATHE`, `RGB_MODE_RAINBOW`, and `RGB_MATRIX_SWIRL` are the only ones that are mapped properly. The rest don't have a direct equivalent, and are not mapped. | ||
| 197 | |||
| 198 | !> By default, if you have both the [RGB Light](feature_rgblight.md) and the RGB Matrix feature enabled, these keycodes will work for both features, at the same time. You can disable the keycode functionality by defining the `*_DISABLE_KEYCODES` option for the specific feature. | ||
| 191 | 199 | ||
| 192 | ## RGB Matrix Effects :id=rgb-matrix-effects | 200 | ## RGB Matrix Effects :id=rgb-matrix-effects |
| 193 | 201 | ||
| @@ -385,6 +393,7 @@ These are defined in [`rgblight_list.h`](https://github.com/qmk/qmk_firmware/blo | |||
| 385 | #define RGB_MATRIX_STARTUP_SAT 255 // Sets the default saturation value, if none has been set | 393 | #define RGB_MATRIX_STARTUP_SAT 255 // Sets the default saturation value, if none has been set |
| 386 | #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS // Sets the default brightness value, if none has been set | 394 | #define RGB_MATRIX_STARTUP_VAL RGB_MATRIX_MAXIMUM_BRIGHTNESS // Sets the default brightness value, if none has been set |
| 387 | #define RGB_MATRIX_STARTUP_SPD 127 // Sets the default animation speed, if none has been set | 395 | #define RGB_MATRIX_STARTUP_SPD 127 // Sets the default animation speed, if none has been set |
| 396 | #define RGB_MATRIX_DISABLE_KEYCODES // disables control of rgb matrix by keycodes (must use code functions to control the feature) | ||
| 388 | ``` | 397 | ``` |
| 389 | 398 | ||
| 390 | ## EEPROM storage :id=eeprom-storage | 399 | ## EEPROM storage :id=eeprom-storage |
diff --git a/docs/feature_rgblight.md b/docs/feature_rgblight.md index 5921e9941..a81b50e82 100644 --- a/docs/feature_rgblight.md +++ b/docs/feature_rgblight.md | |||
| @@ -64,6 +64,9 @@ Changing the **Value** sets the overall brightness.<br> | |||
| 64 | |`RGB_MODE_GRADIENT`|`RGB_M_G` |Static gradient animation mode | | 64 | |`RGB_MODE_GRADIENT`|`RGB_M_G` |Static gradient animation mode | |
| 65 | |`RGB_MODE_RGBTEST` |`RGB_M_T` |Red, Green, Blue test animation mode | | 65 | |`RGB_MODE_RGBTEST` |`RGB_M_T` |Red, Green, Blue test animation mode | |
| 66 | 66 | ||
| 67 | !> By default, if you have both the RGB Light and the [RGB Matrix](feature_rgb_matrix.md) feature enabled, these keycodes will work for both features, at the same time. You can disable the keycode functionality by defining the `*_DISABLE_KEYCODES` option for the specific feature. | ||
| 68 | |||
| 69 | |||
| 67 | ## Configuration | 70 | ## Configuration |
| 68 | 71 | ||
| 69 | Your RGB lighting can be configured by placing these `#define`s in your `config.h`: | 72 | Your RGB lighting can be configured by placing these `#define`s in your `config.h`: |
| @@ -76,6 +79,7 @@ Your RGB lighting can be configured by placing these `#define`s in your `config. | |||
| 76 | |`RGBLIGHT_LIMIT_VAL` |`255` |The maximum brightness level | | 79 | |`RGBLIGHT_LIMIT_VAL` |`255` |The maximum brightness level | |
| 77 | |`RGBLIGHT_SLEEP` |*Not defined*|If defined, the RGB lighting will be switched off when the host goes to sleep| | 80 | |`RGBLIGHT_SLEEP` |*Not defined*|If defined, the RGB lighting will be switched off when the host goes to sleep| |
| 78 | |`RGBLIGHT_SPLIT` |*Not defined*|If defined, synchronization functionality for split keyboards is added| | 81 | |`RGBLIGHT_SPLIT` |*Not defined*|If defined, synchronization functionality for split keyboards is added| |
| 82 | |`RGBLIGHT_DISABLE_KEYCODES`|*not defined*|If defined, disables the ability to control RGB Light from the keycodes. You must use code functions to control the feature| | ||
| 79 | 83 | ||
| 80 | ## Effects and Animations | 84 | ## Effects and Animations |
| 81 | 85 | ||
