More general FSMC display option
This commit is contained in:
		| @@ -2031,9 +2031,9 @@ | ||||
| //============================================================================= | ||||
|  | ||||
| // | ||||
| // MKS Robin 320x240 color display | ||||
| // FSMC display (MKS Robin, Alfawise U20, JGAurora A5S, A1, etc.) | ||||
| // | ||||
| //#define MKS_ROBIN_TFT | ||||
| //#define FSMC_GRAPHICAL_TFT | ||||
|  | ||||
| //============================================================================= | ||||
| //============================  Other Controllers  ============================ | ||||
|   | ||||
| @@ -232,7 +232,7 @@ | ||||
|  /** | ||||
|   * FSMC/SPI TFT PANELS | ||||
|   */ | ||||
|  #if ENABLED(MKS_ROBIN_TFT) | ||||
|  #if ENABLED(FSMC_GRAPHICAL_TFT) | ||||
|    #define DOGLCD | ||||
|    #define IS_ULTIPANEL | ||||
|    #define DELAYED_BACKLIGHT_INIT | ||||
|   | ||||
| @@ -382,6 +382,8 @@ | ||||
|   #error "Replace POWER_SUPPLY 2 by enabling PSU_CONTROL and setting PSU_ACTIVE_HIGH to 'true'." | ||||
| #elif defined(POWER_SUPPLY) | ||||
|   #error "POWER_SUPPLY is now obsolete. Please remove it from Configuration.h." | ||||
| #elif defined(MKS_ROBIN_TFT) | ||||
|   #error "MKS_ROBIN_TFT is now FSMC_GRAPHICAL_TFT. Please update your configuration." | ||||
| #endif | ||||
|  | ||||
| #define BOARD_MKS_13        -1109 | ||||
| @@ -1887,7 +1889,7 @@ static_assert(Y_MAX_LENGTH >= Y_BED_SIZE, "Movement bounds (Y_MIN_POS, Y_MAX_POS | ||||
|   + ENABLED(U8GLIB_SH1106_EINSTART) \ | ||||
|   + ENABLED(DGUS_LCD) \ | ||||
|   + ENABLED(MALYAN_LCD) \ | ||||
|   + ENABLED(MKS_ROBIN_TFT) | ||||
|   + ENABLED(FSMC_GRAPHICAL_TFT) | ||||
|   #error "Please select no more than one LCD controller option." | ||||
| #endif | ||||
|  | ||||
|   | ||||
| @@ -126,7 +126,7 @@ | ||||
|   // Connected via motherboard header | ||||
|   #define U8G_CLASS U8GLIB_SH1106_128X64 | ||||
|   #define U8G_PARAM DOGLCD_SCK, DOGLCD_MOSI, DOGLCD_CS, LCD_PINS_DC, LCD_PINS_RS | ||||
| #elif ENABLED(MKS_ROBIN_TFT) | ||||
| #elif ENABLED(FSMC_GRAPHICAL_TFT) | ||||
|   // Unspecified 320x240 TFT pre-initialized by built-in bootloader | ||||
|   #define U8G_CLASS U8GLIB_TFT_320X240_UPSCALE_FROM_128X64 | ||||
|   #define U8G_PARAM FSMC_CS_PIN, FSMC_RS_PIN | ||||
|   | ||||
| @@ -115,7 +115,7 @@ | ||||
|  * If the screen stays white, disable 'LCD_RESET_PIN' | ||||
|  * to let the bootloader init the screen. | ||||
|  */ | ||||
| #if ENABLED(MKS_ROBIN_TFT) | ||||
| #if ENABLED(FSMC_GRAPHICAL_TFT) | ||||
|   #define LCD_RESET_PIN    PF6 | ||||
|   #define NO_LCD_REINIT           // Suppress LCD re-initialization | ||||
|  | ||||
|   | ||||
| @@ -119,7 +119,7 @@ | ||||
|  * If the screen stays white, disable 'LCD_RESET_PIN' | ||||
|  * to let the bootloader init the screen. | ||||
|  */ | ||||
| #if ENABLED(MKS_ROBIN_TFT) | ||||
| #if ENABLED(FSMC_GRAPHICAL_TFT) | ||||
|   #define LCD_RESET_PIN      PF6 | ||||
|   #define NO_LCD_REINIT             // Suppress LCD re-initialization | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user