-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser_Setup.h
More file actions
34 lines (28 loc) · 742 Bytes
/
User_Setup.h
File metadata and controls
34 lines (28 loc) · 742 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// User_Setup.h for TFT_eSPI
#define USER_SETUP_INFO "User_Setup for Waveshare ESP32-C6-Touch-LCD-1.47"
// Define the ST7796 driver
#define ST7796_DRIVER
// Define pins for ESP32-C6-Touch-LCD-1.47
#define TFT_MISO -1
#define TFT_MOSI 2
#define TFT_SCLK 1
#define TFT_CS 14
#define TFT_DC 15
#define TFT_RST 22
#define TFT_BL 23 // Backlight control pin
// Define the display dimensions
#define TFT_WIDTH 172
#define TFT_HEIGHT 320
// Rotation setting (0-3)
#define LOAD_GLCD
#define LOAD_FONT2
#define LOAD_FONT4
#define LOAD_FONT6
#define LOAD_FONT7
#define LOAD_FONT8
#define LOAD_GFXFF
// SPI frequency - reduced for stability
#define SPI_FREQUENCY 10000000
// Display offset
#define TFT_OFFSET_X 34
#define TFT_OFFSET_Y 0