Skip to content

Commit

Permalink
Fix LPC176x RGB NEOPIXEL startup (MarlinFirmware#18380)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored and HairingX committed Jun 16, 2021
1 parent 8601ad7 commit d48fea3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Marlin/src/feature/leds/neopixel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d48fea3

Please sign in to comment.