diff options
Diffstat (limited to 'quantum/rgblight.h')
| -rw-r--r-- | quantum/rgblight.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/quantum/rgblight.h b/quantum/rgblight.h index efc685f31..d16ba24e5 100644 --- a/quantum/rgblight.h +++ b/quantum/rgblight.h | |||
| @@ -1,8 +1,6 @@ | |||
| 1 | #ifndef RGBLIGHT_H | 1 | #ifndef RGBLIGHT_H |
| 2 | #define RGBLIGHT_H | 2 | #define RGBLIGHT_H |
| 3 | 3 | ||
| 4 | #define RGBW 1 | ||
| 5 | |||
| 6 | #if !defined(AUDIO_ENABLE) && defined(RGBLIGHT_TIMER) | 4 | #if !defined(AUDIO_ENABLE) && defined(RGBLIGHT_TIMER) |
| 7 | #define RGBLIGHT_MODES 23 | 5 | #define RGBLIGHT_MODES 23 |
| 8 | #else | 6 | #else |
| @@ -35,6 +33,7 @@ | |||
| 35 | #endif | 33 | #endif |
| 36 | 34 | ||
| 37 | #define RGBLED_TIMER_TOP F_CPU/(256*64) | 35 | #define RGBLED_TIMER_TOP F_CPU/(256*64) |
| 36 | // #define RGBLED_TIMER_TOP 0xFF10 | ||
| 38 | 37 | ||
| 39 | #include <stdint.h> | 38 | #include <stdint.h> |
| 40 | #include <stdbool.h> | 39 | #include <stdbool.h> |
| @@ -79,10 +78,13 @@ void eeconfig_update_rgblight(uint32_t val); | |||
| 79 | void eeconfig_update_rgblight_default(void); | 78 | void eeconfig_update_rgblight_default(void); |
| 80 | void eeconfig_debug_rgblight(void); | 79 | void eeconfig_debug_rgblight(void); |
| 81 | 80 | ||
| 82 | void sethsv(uint16_t hue, uint8_t sat, uint8_t val, struct cRGB *led1); | 81 | void sethsv(uint16_t hue, uint8_t sat, uint8_t val, LED_TYPE *led1); |
| 83 | void setrgb(uint8_t r, uint8_t g, uint8_t b, struct cRGB *led1); | 82 | void setrgb(uint8_t r, uint8_t g, uint8_t b, LED_TYPE *led1); |
| 84 | void rgblight_sethsv_noeeprom(uint16_t hue, uint8_t sat, uint8_t val); | 83 | void rgblight_sethsv_noeeprom(uint16_t hue, uint8_t sat, uint8_t val); |
| 85 | 84 | ||
| 85 | |||
| 86 | void rgblight_task(void); | ||
| 87 | |||
| 86 | void rgblight_timer_init(void); | 88 | void rgblight_timer_init(void); |
| 87 | void rgblight_timer_enable(void); | 89 | void rgblight_timer_enable(void); |
| 88 | void rgblight_timer_disable(void); | 90 | void rgblight_timer_disable(void); |
