Fix LPC176x RGB NEOPIXEL startup (#18380)
This commit is contained in:
parent
3bfbd47c6d
commit
07966ea82b
@ -71,13 +71,11 @@ void Marlin_NeoPixel::set_color_startup(const uint32_t color) {
|
||||
}
|
||||
|
||||
void Marlin_NeoPixel::init() {
|
||||
SET_OUTPUT(NEOPIXEL_PIN);
|
||||
set_brightness(NEOPIXEL_BRIGHTNESS); // 0 - 255 range
|
||||
begin();
|
||||
show(); // initialize to all off
|
||||
|
||||
#if ENABLED(NEOPIXEL_STARTUP_TEST)
|
||||
safe_delay(1000);
|
||||
set_color_startup(adaneo1.Color(255, 0, 0, 0)); // red
|
||||
safe_delay(1000);
|
||||
set_color_startup(adaneo1.Color(0, 255, 0, 0)); // green
|
||||
|
Loading…
Reference in New Issue
Block a user