MKS_MINI, FYSETC RGB, backlight (#15334)

This commit is contained in:
DrDitto
2019-09-25 17:41:04 -06:00
committed by Scott Lahteine
parent ddd9d9032a
commit 04e4eb35be
5 changed files with 154 additions and 82 deletions

View File

@@ -974,6 +974,12 @@ void setup() {
// UI must be initialized before EEPROM
// (because EEPROM code calls the UI).
// Set up LEDs early
#if HAS_COLOR_LEDS
leds.setup();
#endif
ui.init();
ui.reset_status();
@@ -1068,10 +1074,6 @@ void setup() {
OUT_WRITE(STAT_LED_BLUE_PIN, LOW); // OFF
#endif
#if HAS_COLOR_LEDS
leds.setup();
#endif
#if HAS_CASE_LIGHT
#if DISABLED(CASE_LIGHT_USE_NEOPIXEL)
if (PWM_PIN(CASE_LIGHT_PIN)) SET_PWM(CASE_LIGHT_PIN); else SET_OUTPUT(CASE_LIGHT_PIN);