Browse Source

Tweak neopixel self-test

Scott Lahteine 7 years ago
parent
commit
2296d98845
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      Marlin/Marlin_main.cpp

+ 4
- 4
Marlin/Marlin_main.cpp View File

1013
       pixels.show(); // initialize to all off
1013
       pixels.show(); // initialize to all off
1014
 
1014
 
1015
       #if ENABLED(NEOPIXEL_STARTUP_TEST)
1015
       #if ENABLED(NEOPIXEL_STARTUP_TEST)
1016
-        delay(2000);
1016
+        safe_delay(1000);
1017
         set_neopixel_color(pixels.Color(255, 0, 0, 0));  // red
1017
         set_neopixel_color(pixels.Color(255, 0, 0, 0));  // red
1018
-        delay(2000);
1018
+        safe_delay(1000);
1019
         set_neopixel_color(pixels.Color(0, 255, 0, 0));  // green
1019
         set_neopixel_color(pixels.Color(0, 255, 0, 0));  // green
1020
-        delay(2000);
1020
+        safe_delay(1000);
1021
         set_neopixel_color(pixels.Color(0, 0, 255, 0));  // blue
1021
         set_neopixel_color(pixels.Color(0, 0, 255, 0));  // blue
1022
-        delay(2000);
1022
+        safe_delay(1000);
1023
       #endif
1023
       #endif
1024
       set_neopixel_color(pixels.Color(NEO_WHITE));       // white
1024
       set_neopixel_color(pixels.Color(NEO_WHITE));       // white
1025
     }
1025
     }

Loading…
Cancel
Save