43 lines
No EOL
1,015 B
C
43 lines
No EOL
1,015 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_SPI_DEVICE
|
|
#define HLC_TFT_DISPLAY
|
|
|
|
#define SPI_DRIVER SPID1
|
|
#define SPI_SCK_PIN GP14
|
|
#define SPI_MOSI_PIN GP15
|
|
#define SPI_MISO_PIN GP12
|
|
|
|
// 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 FALSE
|
|
#define ST7789_NO_AUTOMATIC_VIEWPORT_OFFSETS
|
|
#define ST7789_NUM_DEVICES 1
|
|
|
|
#define SURFACE_NUM_DEVICES 1
|
|
|
|
// Backlight configuration
|
|
#define BACKLIGHT_PIN GP27
|
|
#define BACKLIGHT_PWM_DRIVER PWMD5
|
|
#define BACKLIGHT_LEVELS 10
|
|
#define BACKLIGHT_PWM_CHANNEL RP2040_PWM_CHANNEL_B
|
|
|
|
// Timeout configuration
|
|
#define QUANTUM_PAINTER_DISPLAY_TIMEOUT 120000 |