Update DOGLCD conditions
This commit is contained in:
		| @@ -24,7 +24,7 @@ | ||||
| #include "../../core/macros.h" | ||||
| #include "../../inc/MarlinConfigPre.h" | ||||
|  | ||||
| #if BOTH(SDSUPPORT, DOGLCD) && (LCD_PINS_D4 == SCK_PIN || LCD_PINS_ENABLE == MOSI_PIN || DOGLCD_SCK == SCK_PIN || DOGLCD_MOSI == MOSI_PIN) | ||||
| #if HAS_GRAPHICAL_LCD && ENABLED(SDSUPPORT) && (LCD_PINS_D4 == SCK_PIN || LCD_PINS_ENABLE == MOSI_PIN || DOGLCD_SCK == SCK_PIN || DOGLCD_MOSI == MOSI_PIN) | ||||
|   #define LPC_SOFTWARE_SPI  // If the SD card and LCD adapter share the same SPI pins, then software SPI is currently | ||||
|                             // needed due to the speed and mode requred for communicating with each device being different. | ||||
|                             // This requirement can be removed if the SPI access to these devices is updated to use | ||||
|   | ||||
| @@ -1551,7 +1551,7 @@ | ||||
| /** | ||||
|  * Make sure DOGLCD_SCK and DOGLCD_MOSI are defined. | ||||
|  */ | ||||
| #if ENABLED(DOGLCD) | ||||
| #if HAS_GRAPHICAL_LCD | ||||
|   #ifndef DOGLCD_SCK | ||||
|     #define DOGLCD_SCK  SCK_PIN | ||||
|   #endif | ||||
|   | ||||
| @@ -554,7 +554,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS | ||||
| /** | ||||
|  * Custom Boot and Status screens | ||||
|  */ | ||||
| #if DISABLED(DOGLCD) && EITHER(SHOW_CUSTOM_BOOTSCREEN, CUSTOM_STATUS_SCREEN_IMAGE) | ||||
| #if EITHER(SHOW_CUSTOM_BOOTSCREEN, CUSTOM_STATUS_SCREEN_IMAGE) && !HAS_GRAPHICAL_LCD | ||||
|   #error "Graphical LCD is required for SHOW_CUSTOM_BOOTSCREEN and CUSTOM_STATUS_SCREEN_IMAGE." | ||||
| #endif | ||||
|  | ||||
| @@ -619,7 +619,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS | ||||
|     #error "MESH_BED_LEVELING and BABYSTEP_ZPROBE_OFFSET is not a valid combination" | ||||
|   #elif ENABLED(BABYSTEP_ZPROBE_OFFSET) && !HAS_BED_PROBE | ||||
|     #error "BABYSTEP_ZPROBE_OFFSET requires a probe." | ||||
|   #elif ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY) && DISABLED(DOGLCD) | ||||
|   #elif ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY) && !HAS_GRAPHICAL_LCD | ||||
|     #error "BABYSTEP_ZPROBE_GFX_OVERLAY requires a Graphical LCD." | ||||
|   #elif ENABLED(BABYSTEP_ZPROBE_GFX_OVERLAY) && DISABLED(BABYSTEP_ZPROBE_OFFSET) | ||||
|     #error "BABYSTEP_ZPROBE_GFX_OVERLAY requires a BABYSTEP_ZPROBE_OFFSET." | ||||
| @@ -951,7 +951,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS | ||||
| /** | ||||
|  * Required LCD language | ||||
|  */ | ||||
| #if DISABLED(DOGLCD) && ENABLED(ULTRA_LCD) && !defined(DISPLAY_CHARSET_HD44780) | ||||
| #if HAS_CHARACTER_LCD && !defined(DISPLAY_CHARSET_HD44780) | ||||
|   #error "You must set DISPLAY_CHARSET_HD44780 to JAPANESE, WESTERN or CYRILLIC for your LCD controller." | ||||
| #endif | ||||
|  | ||||
| @@ -1254,7 +1254,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS | ||||
|   #error "G26_MESH_VALIDATION requires MESH_BED_LEVELING, AUTO_BED_LEVELING_BILINEAR, or AUTO_BED_LEVELING_UBL." | ||||
| #endif | ||||
|  | ||||
| #if ENABLED(MESH_EDIT_GFX_OVERLAY) && !BOTH(AUTO_BED_LEVELING_UBL, DOGLCD) | ||||
| #if ENABLED(MESH_EDIT_GFX_OVERLAY) && !(ENABLED(AUTO_BED_LEVELING_UBL) && HAS_GRAPHICAL_LCD) | ||||
|   #error "MESH_EDIT_GFX_OVERLAY requires AUTO_BED_LEVELING_UBL and a Graphical LCD." | ||||
| #endif | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user