35 lines
		
	
	
	
		
			811 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
	
		
			811 B
		
	
	
	
		
			C
		
	
	
	
	
	
// Copyright 2024 splitkb.com (support@splitkb.com)
 | 
						|
// SPDX-License-Identifier: GPL-2.0-or-later
 | 
						|
 | 
						|
// Any QMK options should go here
 | 
						|
 | 
						|
#pragma once
 | 
						|
 | 
						|
#define HLC_TFT_DISPLAY
 | 
						|
 | 
						|
// LCD Configuration
 | 
						|
#define LCD_RST_PIN GP26
 | 
						|
#define LCD_CS_PIN GP13
 | 
						|
#define LCD_DC_PIN GP16
 | 
						|
#define LCD_SPI_DIVISOR 0
 | 
						|
#define LCD_SPI_MODE 3
 | 
						|
#define LCD_WAIT_TIME 150
 | 
						|
#define LCD_WIDTH 135
 | 
						|
#define LCD_HEIGHT 240
 | 
						|
#define LCD_ROTATION QP_ROTATION_0
 | 
						|
#define LCD_OFFSET_X 52
 | 
						|
#define LCD_OFFSET_Y 40
 | 
						|
 | 
						|
// QP Configuration
 | 
						|
#define QUANTUM_PAINTER_SUPPORTS_NATIVE_COLORS TRUE
 | 
						|
#define ST7789_NO_AUTOMATIC_VIEWPORT_OFFSETS
 | 
						|
#define ST7789_NUM_DEVICES 1
 | 
						|
 | 
						|
#define SURFACE_NUM_DEVICES 1
 | 
						|
 | 
						|
// Backlight configuration
 | 
						|
#undef BACKLIGHT_PIN
 | 
						|
#define BACKLIGHT_PIN GP27
 | 
						|
 | 
						|
// Timeout configuration
 | 
						|
#define QUANTUM_PAINTER_DISPLAY_TIMEOUT HLC_BACKLIGHT_TIMEOUT
 |