🔥 Remove Chitu default Touch Calibration (#22133)
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							2b4284df81
						
					
				
				
					commit
					31fd3be6eb
				
			@@ -150,26 +150,9 @@
 | 
			
		||||
  #define HAS_LOGO_IN_FLASH                    0
 | 
			
		||||
#elif ENABLED(TFT_COLOR_UI)
 | 
			
		||||
  // Color UI
 | 
			
		||||
  #define TFT_DRIVER                     ILI9488
 | 
			
		||||
  #define TFT_BUFFER_SIZE                  14400
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
// XPT2046 Touch Screen calibration
 | 
			
		||||
#if ANY(TFT_LVGL_UI, TFT_COLOR_UI, TFT_CLASSIC_UI)
 | 
			
		||||
  #ifndef TOUCH_CALIBRATION_X
 | 
			
		||||
    #define TOUCH_CALIBRATION_X           -17181
 | 
			
		||||
  #endif
 | 
			
		||||
  #ifndef TOUCH_CALIBRATION_Y
 | 
			
		||||
    #define TOUCH_CALIBRATION_Y            11434
 | 
			
		||||
  #endif
 | 
			
		||||
  #ifndef TOUCH_OFFSET_X
 | 
			
		||||
    #define TOUCH_OFFSET_X                   501
 | 
			
		||||
  #endif
 | 
			
		||||
  #ifndef TOUCH_OFFSET_Y
 | 
			
		||||
    #define TOUCH_OFFSET_Y                    -9
 | 
			
		||||
  #endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
// SPI1(PA7)=LCD & SPI3(PB5)=STUFF, are not available
 | 
			
		||||
// Needs to use SPI2
 | 
			
		||||
#define SPI_DEVICE                             2
 | 
			
		||||
 
 | 
			
		||||
@@ -165,26 +165,9 @@
 | 
			
		||||
  #define HAS_LOGO_IN_FLASH                    0
 | 
			
		||||
#elif ENABLED(TFT_COLOR_UI)
 | 
			
		||||
  // Color UI
 | 
			
		||||
  #define TFT_DRIVER                     ILI9488
 | 
			
		||||
  #define TFT_BUFFER_SIZE                  14400
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
// XPT2046 Touch Screen calibration
 | 
			
		||||
#if ANY(TFT_LVGL_UI, TFT_COLOR_UI, TFT_CLASSIC_UI)
 | 
			
		||||
  #ifndef TOUCH_CALIBRATION_X
 | 
			
		||||
    #define TOUCH_CALIBRATION_X           -17181
 | 
			
		||||
  #endif
 | 
			
		||||
  #ifndef TOUCH_CALIBRATION_Y
 | 
			
		||||
    #define TOUCH_CALIBRATION_Y            11434
 | 
			
		||||
  #endif
 | 
			
		||||
  #ifndef TOUCH_OFFSET_X
 | 
			
		||||
    #define TOUCH_OFFSET_X                   501
 | 
			
		||||
  #endif
 | 
			
		||||
  #ifndef TOUCH_OFFSET_Y
 | 
			
		||||
    #define TOUCH_OFFSET_Y                    -9
 | 
			
		||||
  #endif
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
// SPI1(PA7)=LCD & SPI3(PB5)=STUFF, are not available
 | 
			
		||||
// so SPI2 is required.
 | 
			
		||||
#define SPI_DEVICE                             2
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user