|
|
|
@ -2666,12 +2666,11 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
|
|
|
|
|
|
|
|
|
#undef IS_U8GLIB_SSD1306
|
|
|
|
|
#undef IS_EXTUI
|
|
|
|
|
#undef IS_LEGACY_TFT
|
|
|
|
|
|
|
|
|
|
#if ANY(TFT_GENERIC, MKS_TS35_V2_0, MKS_ROBIN_TFT24, MKS_ROBIN_TFT28, MKS_ROBIN_TFT32, MKS_ROBIN_TFT35, MKS_ROBIN_TFT43, MKS_ROBIN_TFT_V1_1R, TFT_TRONXY_X5SA, ANYCUBIC_TFT35, ANYCUBIC_TFT35, LONGER_LK_TFT28, ANET_ET4_TFT28, ANET_ET5_TFT35, BIQU_BX_TFT70)
|
|
|
|
|
#if NONE(TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI)
|
|
|
|
|
#error "TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI is required for your TFT. Please enable one."
|
|
|
|
|
#elif 1 < ENABLED(TFT_COLOR_UI) + ENABLED(TFT_CLASSIC_UI) + ENABLED(TFT_LVGL_UI)
|
|
|
|
|
#elif MANY(TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI)
|
|
|
|
|
#error "Please select only one of TFT_COLOR_UI, TFT_CLASSIC_UI, or TFT_LVGL_UI."
|
|
|
|
|
#endif
|
|
|
|
|
#elif ANY(TFT_COLOR_UI, TFT_CLASSIC_UI, TFT_LVGL_UI)
|
|
|
|
@ -2694,8 +2693,12 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS
|
|
|
|
|
#error "Please select only one of TFT_RES_320x240, TFT_RES_480x272, TFT_RES_480x320, or TFT_RES_1024x600."
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if HAS_TFT_LVGL_UI && DISABLED(TFT_RES_480x320)
|
|
|
|
|
#error "(FMSC|SPI)TFT_LVGL_UI requires TFT_RES_480x320."
|
|
|
|
|
#if ENABLED(TFT_LVGL_UI)
|
|
|
|
|
#if DISABLED(TFT_RES_480x320)
|
|
|
|
|
#error "TFT_LVGL_UI requires TFT_RES_480x320."
|
|
|
|
|
#elif DISABLED(SDSUPPORT)
|
|
|
|
|
#error "TFT_LVGL_UI requires SDSUPPORT."
|
|
|
|
|
#endif
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#if defined(GRAPHICAL_TFT_UPSCALE) && !WITHIN(GRAPHICAL_TFT_UPSCALE, 2, 4)
|
|
|
|
|