LED_CONTROL_MENU config changes

This commit is contained in:
Scott Lahteine
2017-11-28 01:05:51 -06:00
parent cf0f78336b
commit 8f90642eea
38 changed files with 504 additions and 377 deletions

View File

@ -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)

View File

@ -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"

View File

@ -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_