|
|
@ -40,19 +40,15 @@ |
|
|
|
#error wt_rgb_backlight.c compiled without setting configuration symbol |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifndef MAX |
|
|
|
#define MAX(X, Y) ((X) > (Y) ? (X) : (Y)) |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifndef MIN |
|
|
|
#define MIN(a,b) ((a) < (b)? (a): (b)) |
|
|
|
#endif |
|
|
|
|
|
|
|
#include "quantum.h" |
|
|
|
#include "wt_rgb_backlight.h" |
|
|
|
#include "wt_rgb_backlight_api.h" |
|
|
|
#include "wt_rgb_backlight_keycodes.h" |
|
|
|
|
|
|
|
#include <stdlib.h> |
|
|
|
#include "quantum.h" |
|
|
|
#include "host.h" |
|
|
|
#include "util.h" |
|
|
|
|
|
|
|
#if !defined(RGB_BACKLIGHT_HS60) && !defined(RGB_BACKLIGHT_NK65) && !defined(RGB_BACKLIGHT_NK87) && !defined(RGB_BACKLIGHT_NEBULA68) && !defined(RGB_BACKLIGHT_NEBULA12) && !defined (RGB_BACKLIGHT_KW_MEGA) |
|
|
|
#include <avr/interrupt.h> |
|
|
|
#include "i2c_master.h" |
|
|
|