Independent Neopixel option (#19115)
This commit is contained in:
@@ -246,6 +246,28 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if BOTH(LED_CONTROL_MENU, NEOPIXEL2_SEPARATE)
|
||||
#ifndef LED2_USER_PRESET_RED
|
||||
#define LED2_USER_PRESET_RED 255
|
||||
#endif
|
||||
#ifndef LED2_USER_PRESET_GREEN
|
||||
#define LED2_USER_PRESET_GREEN 255
|
||||
#endif
|
||||
#ifndef LED2_USER_PRESET_BLUE
|
||||
#define LED2_USER_PRESET_BLUE 255
|
||||
#endif
|
||||
#ifndef LED2_USER_PRESET_WHITE
|
||||
#define LED2_USER_PRESET_WHITE 0
|
||||
#endif
|
||||
#ifndef LED2_USER_PRESET_BRIGHTNESS
|
||||
#ifdef NEOPIXEL2_BRIGHTNESS
|
||||
#define LED2_USER_PRESET_BRIGHTNESS NEOPIXEL2_BRIGHTNESS
|
||||
#else
|
||||
#define LED2_USER_PRESET_BRIGHTNESS 255
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// If platform requires early initialization of watchdog to properly boot
|
||||
#if ENABLED(USE_WATCHDOG) && defined(ARDUINO_ARCH_SAM)
|
||||
#define EARLY_WATCHDOG 1
|
||||
|
||||
Reference in New Issue
Block a user