Wait for 1 second before turning on RGB to get debug messages on
console.
- configure HSV color, on a brand new pro micro the default values are
0, 0, 0
*/
#include "bigswitch.h"
+volatile uint8_t runonce = true;
+static uint16_t my_timer;
+
void matrix_init_user(void) {
- rgblight_enable();
- rgblight_mode(9);
+ my_timer = timer_read();
+}
+
+void matrix_scan_user(void) {
+ if (runonce && timer_elapsed(my_timer) > 1000) {
+ runonce = false;
+ rgblight_sethsv(0x0, 0xff, 0x80);
+ rgblight_mode(9);
+ rgblight_enable();
+ }
}
#ifdef RGBLIGHT_ENABLE
#define RGB_DI_PIN D3
#define RGBLIGHT_ANIMATIONS
-#define RGBLED_NUM 5
+#define RGBLED_NUM 8
#endif
#endif