LED_CONTROL_MENU config changes
This commit is contained in:
@ -1178,6 +1178,29 @@
|
||||
#define MAX_VFAT_ENTRIES (2)
|
||||
#endif
|
||||
|
||||
// Set defaults for unspecified LED user colors
|
||||
#if ENABLED(LED_CONTROL_MENU)
|
||||
#ifndef LED_USER_PRESET_RED
|
||||
#define LED_USER_PRESET_RED 255
|
||||
#endif
|
||||
#ifndef LED_USER_PRESET_GREEN
|
||||
#define LED_USER_PRESET_GREEN 255
|
||||
#endif
|
||||
#ifndef LED_USER_PRESET_BLUE
|
||||
#define LED_USER_PRESET_BLUE 255
|
||||
#endif
|
||||
#ifndef LED_USER_PRESET_WHITE
|
||||
#define LED_USER_PRESET_WHITE 0
|
||||
#endif
|
||||
#ifndef LED_USER_PRESET_BRIGHTNESS
|
||||
#ifdef NEOPIXEL_BRIGHTNESS
|
||||
#define LED_USER_PRESET_BRIGHTNESS NEOPIXEL_BRIGHTNESS
|
||||
#else
|
||||
#define LED_USER_PRESET_BRIGHTNESS 255
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// Force SDCARD_SORT_ALPHA to be enabled for Graphical LCD on LPC1768
|
||||
// because of a bug in the shared SPI implementation. (See #8122)
|
||||
#if defined(TARGET_LPC1768) && ENABLED(REPRAP_DISCOUNT_FULL_GRAPHIC_SMART_CONTROLLER)
|
||||
|
@ -32,6 +32,7 @@
|
||||
#endif
|
||||
#include "Conditionals_post.h"
|
||||
#include "SanityCheck.h"
|
||||
#include "../HAL/HAL_SanityCheck.h"
|
||||
|
||||
// Include all core headers
|
||||
#include "../core/enum.h"
|
||||
|
@ -1479,6 +1479,8 @@ static_assert(COUNT(sanity_arr_3) <= XYZE_N, "DEFAULT_MAX_ACCELERATION has too m
|
||||
#error "BLOCK_BUFFER_SIZE must be a power of 2."
|
||||
#endif
|
||||
|
||||
#include "../HAL/HAL_SanityCheck.h" // get CPU specific checks
|
||||
#if ENABLED(LED_CONTROL_MENU) && DISABLED(ULTIPANEL)
|
||||
#error "LED_CONTROL_MENU requires an LCD controller."
|
||||
#endif
|
||||
|
||||
#endif // _SANITYCHECK_H_
|
||||
|
Reference in New Issue
Block a user