mirror of
https://github.com/qmk/qmk_firmware
synced 2024-11-17 17:35:30 +00:00
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.
This commit is contained in:
parent
c9c63806a7
commit
1fd2f2f022
1 changed files with 4 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue