Skip to content

Commit

Permalink
Add backlight/RGB ifdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
nooges committed Apr 9, 2020
1 parent e282e7a commit 44c65c9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion keyboards/keebio/quefrency/rev2/rev2.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,17 @@ bool led_update_kb(led_t led_state) {
}

void eeconfig_init_kb(void) {
#ifdef BACKLIGHT_ENABLE
backlight_enable();
backlight_level(3);
#endif
#ifdef RGBLIGHT_ENABLE
rgblight_enable(); // Enable RGB by default
rgblight_sethsv(0, 255, 128); // Set default HSV - red hue, full saturation, medium brightness
rgblight_sethsv(0, 255, 255); // Set default HSV - red hue, full saturation, full brightness
#ifdef RGBLIGHT_ANIMATIONS
rgblight_mode(RGBLIGHT_MODE_RAINBOW_SWIRL + 2); // set to RGB_RAINBOW_SWIRL by default
#endif
#endif

eeconfig_update_kb(0);
eeconfig_init_user();
Expand Down

0 comments on commit 44c65c9

Please sign in to comment.