feat: add display and touch initialization in DisplayHandler

This commit is contained in:
GW_MC
2026-01-21 14:10:39 +08:00
parent 44fb9aa632
commit 4fa8dc608f
3 changed files with 184 additions and 88 deletions

11
main/display/constants.h Normal file
View File

@@ -0,0 +1,11 @@
#pragma once
#include "driver/spi_master.h"
#include "driver/gpio.h"
#define PIN_TOUCH_IRQ GPIO_NUM_4
#define PIN_TOUCH_SDA GPIO_NUM_5
#define PIN_TOUCH_SCL GPIO_NUM_6
#define PIN_BUSY GPIO_NUM_7
#define PIN_RST GPIO_NUM_8
#define PIN_DC GPIO_NUM_9
#define PIN_CS GPIO_NUM_10