ellensp
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
0 additions and
2 deletions
-
Marlin/src/feature/leds/neopixel.cpp
|
@ -71,13 +71,11 @@ void Marlin_NeoPixel::set_color_startup(const uint32_t color) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void Marlin_NeoPixel::init() { |
|
|
void Marlin_NeoPixel::init() { |
|
|
SET_OUTPUT(NEOPIXEL_PIN); |
|
|
|
|
|
set_brightness(NEOPIXEL_BRIGHTNESS); // 0 - 255 range
|
|
|
set_brightness(NEOPIXEL_BRIGHTNESS); // 0 - 255 range
|
|
|
begin(); |
|
|
begin(); |
|
|
show(); // initialize to all off
|
|
|
show(); // initialize to all off
|
|
|
|
|
|
|
|
|
#if ENABLED(NEOPIXEL_STARTUP_TEST) |
|
|
#if ENABLED(NEOPIXEL_STARTUP_TEST) |
|
|
safe_delay(1000); |
|
|
|
|
|
set_color_startup(adaneo1.Color(255, 0, 0, 0)); // red
|
|
|
set_color_startup(adaneo1.Color(255, 0, 0, 0)); // red
|
|
|
safe_delay(1000); |
|
|
safe_delay(1000); |
|
|
set_color_startup(adaneo1.Color(0, 255, 0, 0)); // green
|
|
|
set_color_startup(adaneo1.Color(0, 255, 0, 0)); // green
|
|
|