Browse Source

✏️ Fix FYSETC Mini Panel neopixel type (#24011, #24111)

FB4S_WIFI
Keith Bennett 3 years ago
committed by Scott Lahteine
parent
commit
8d3c84a6d9
  1. 10
      Marlin/src/inc/SanityCheck.h
  2. 4
      Marlin/src/inc/Warnings.cpp

10
Marlin/src/inc/SanityCheck.h

@ -2350,23 +2350,21 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
#endif #endif
/** /**
* FYSETC LCD Requirements * FYSETC/MKS/BTT Mini Panel Requirements
*/ */
#if EITHER(FYSETC_242_OLED_12864, FYSETC_MINI_12864_2_1) #if EITHER(FYSETC_242_OLED_12864, FYSETC_MINI_12864_2_1)
#ifndef NEO_RGB #ifndef NEO_RGB
#define NEO_RGB 123 #define NEO_RGB 123
#define FAUX_RGB 1
#endif #endif
#if defined(NEOPIXEL_TYPE) && NEOPIXEL_TYPE != NEO_RGB #if defined(NEOPIXEL_TYPE) && NEOPIXEL_TYPE != NEO_RGB
#error "Your FYSETC Mini Panel requires NEOPIXEL_TYPE to be NEO_RGB." #error "Your FYSETC/MKS/BTT Mini Panel requires NEOPIXEL_TYPE to be NEO_RGB."
#elif defined(NEOPIXEL_PIXELS) && NEOPIXEL_PIXELS < 3 #elif defined(NEOPIXEL_PIXELS) && NEOPIXEL_PIXELS < 3
#error "Your FYSETC Mini Panel requires NEOPIXEL_PIXELS >= 3." #error "Your FYSETC/MKS/BTT Mini Panel requires NEOPIXEL_PIXELS >= 3."
#endif #endif
#if FAUX_RGB #if FAUX_RGB
#undef NEO_RGB #undef NEO_RGB
#undef FAUX_RGB
#endif #endif
#elif EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) && !DISABLED(RGB_LED) #elif EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) && DISABLED(RGB_LED)
#error "Your FYSETC Mini Panel requires RGB_LED." #error "Your FYSETC Mini Panel requires RGB_LED."
#endif #endif

4
Marlin/src/inc/Warnings.cpp

@ -579,10 +579,10 @@
#endif #endif
/** /**
* FYSETC backlighting * FYSETC/MKS/BTT Mini Panel backlighting
*/ */
#if EITHER(FYSETC_242_OLED_12864, FYSETC_MINI_12864_2_1) && !ALL(NEOPIXEL_LED, LED_CONTROL_MENU, LED_USER_PRESET_STARTUP, LED_COLOR_PRESETS) #if EITHER(FYSETC_242_OLED_12864, FYSETC_MINI_12864_2_1) && !ALL(NEOPIXEL_LED, LED_CONTROL_MENU, LED_USER_PRESET_STARTUP, LED_COLOR_PRESETS)
#warning "Your FYSETC Mini Panel works best with NEOPIXEL_LED, LED_CONTROL_MENU, LED_USER_PRESET_STARTUP, and LED_COLOR_PRESETS." #warning "Your FYSETC/MKS/BTT Mini Panel works best with NEOPIXEL_LED, LED_CONTROL_MENU, LED_USER_PRESET_STARTUP, and LED_COLOR_PRESETS."
#endif #endif
#if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) && DISABLED(RGB_LED) #if EITHER(FYSETC_MINI_12864_1_2, FYSETC_MINI_12864_2_0) && DISABLED(RGB_LED)

Loading…
Cancel
Save