Small LED code reorganization (#12929)

This commit is contained in:
Giuliano Zaro authored and Scott Lahteine committed 2019-01-17 13:20:26 -06:00
1 parent e6805582a6
commit 7bb5d4bfe8
3 files changed
+11 -10

No files matched your search

+8
View File
@@ -60,6 +60,14 @@
LEDLights leds;
void LEDLights::setup() {
#if ENABLED(RGB_LED) || ENABLED(RGBW_LED)
SET_OUTPUT(RGB_LED_R_PIN);
SET_OUTPUT(RGB_LED_G_PIN);
SET_OUTPUT(RGB_LED_B_PIN);
#if ENABLED(RGBW_LED)
SET_OUTPUT(RGB_LED_W_PIN);
#endif
#endif
#if ENABLED(NEOPIXEL_LED)
setup_neopixel();
#endif