diff options
author | Drashna Jaelre <drashna@live.com> | 2020-08-25 02:05:39 -0700 |
---|---|---|
committer | Drashna Jael're <drashna@live.com> | 2020-09-30 02:43:02 -0700 |
commit | a1d87ee1d42dd6f446410aa617ce61ffa1034afd (patch) | |
tree | 414342cdcbc2c178aa0f84e6b8fa859e04493fda /quantum | |
parent | 34e094388fbfd8945d6e08d4716a66a2556f7915 (diff) |
Compiler warning when using WS2812 (#9955)
Specifically, when rgb matrix is enabled and using the ws2812 driver, and rgb light is enabled at the same time, print a message about coexistance because it can cause issues, since you cannot change pins/config for the WS2812 driver.
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/rgb_matrix_drivers.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/rgb_matrix_drivers.c b/quantum/rgb_matrix_drivers.c index 6084d5685c..0403d6c96a 100644 --- a/quantum/rgb_matrix_drivers.c +++ b/quantum/rgb_matrix_drivers.c @@ -111,6 +111,10 @@ const rgb_matrix_driver_t rgb_matrix_driver = { # endif #elif defined(WS2812) +# if defined(RGBLIGHT_ENABLE) && !defined(RGBLIGHT_CUSTOM_DRIVER) +# pragma message "Cannot use RGBLIGHT and RGB Matrix using WS2812 at the same time." +# pragma message "You need to use a custom driver, or re-implement the WS2812 driver to use a different configuration." +# endif // LED color buffer LED_TYPE rgb_matrix_ws2812_array[DRIVER_LED_TOTAL]; |