#include "suspend.h"
#include "timer.h"
#include "led.h"
+#include "host.h"
#ifdef PROTOCOL_LUFA
#include "lufa.h"
#include "audio.h"
#endif /* AUDIO_ENABLE */
+#ifdef RGBLIGHT_ANIMATIONS
+ #include "rgblight.h"
+#endif
#define wdt_intr_enable(value) \
// This sometimes disables the start-up noise, so it's been disabled
// stop_all_notes();
#endif /* AUDIO_ENABLE */
-
+#ifdef RGBLIGHT_SLEEP
+#ifdef RGBLIGHT_ANIMATIONS
+ rgblight_timer_disable();
+#endif
+ rgblight_disable();
+#endif
// TODO: more power saving
// See PicoPower application note
// - I/O port input with pullup
backlight_init();
#endif
led_set(host_keyboard_leds());
+#ifdef RGBLIGHT_SLEEP
+ rgblight_enable();
+#ifdef RGBLIGHT_ANIMATIONS
+ rgblight_timer_enable();
+#endif
+#endif
}
#ifndef NO_SUSPEND_POWER_DOWN