diff options
author | XScorpion2 <[email protected]> | 2019-04-14 20:50:35 -0400 |
---|---|---|
committer | MechMerlin <[email protected]> | 2019-04-14 17:50:35 -0700 |
commit | 5fcd744ddba591829a129560992b2e43fb615d4d (patch) | |
tree | 33b78133af1563f5dfa1e125a37f86e30a7df1cb /drivers/avr/ws2812.h | |
parent | d7ba190cd9b90bce3a00dfa2a9afe4b3bf0a1dbb (diff) | |
download | qmk_firmware-5fcd744ddba591829a129560992b2e43fb615d4d.tar.gz qmk_firmware-5fcd744ddba591829a129560992b2e43fb615d4d.zip |
Features/ws2812 matrix driver (#5418)0.6.335
* WS2812 driver implementation for RGB Matrix
* Added driver configuration docs
Diffstat (limited to 'drivers/avr/ws2812.h')
-rw-r--r-- | drivers/avr/ws2812.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/avr/ws2812.h b/drivers/avr/ws2812.h index 1f9299ffb5..ecb1dc4d18 100644 --- a/drivers/avr/ws2812.h +++ b/drivers/avr/ws2812.h @@ -30,7 +30,6 @@ #include "rgblight_types.h" - /* User Interface * * Input: @@ -43,6 +42,10 @@ * - Send out the LED data * - Wait 50�s to reset the LEDs */ +#ifdef RGB_MATRIX_ENABLE +void ws2812_setled (int index, uint8_t r, uint8_t g, uint8_t b); +void ws2812_setled_all (uint8_t r, uint8_t g, uint8_t b); +#endif void ws2812_setleds (LED_TYPE *ledarray, uint16_t number_of_leds); void ws2812_setleds_pin (LED_TYPE *ledarray, uint16_t number_of_leds,uint8_t pinmask); |