Added a build flag for using a custom rgblight driver

This commit is contained in:
Luiz Ribeiro 2017-06-10 12:40:32 -04:00
parent 964d7060e1
commit d4cd5dda5c
7 changed files with 57 additions and 23 deletions

View file

@ -364,7 +364,7 @@ void rgblight_setrgb(uint8_t r, uint8_t g, uint8_t b) {
rgblight_set();
}
__attribute__ ((weak))
#ifndef RGBLIGHT_CUSTOM_DRIVER
void rgblight_set(void) {
if (rgblight_config.enable) {
#ifdef RGBW
@ -385,6 +385,7 @@ void rgblight_set(void) {
#endif
}
}
#endif
#ifdef RGBLIGHT_ANIMATIONS