mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-19 23:15:05 +00:00
Adapted from pull request https://github.com/ByteWelder/Tactility/pull/238 - JC2432W328C - ST7789 - CST820 (816) 240x320 - 2.8 inch - ESP32-8048S043C - ST7262 - GT911 800x480 - 4.3 inch - JC8048W550C - ST7262 - GT911 800x480 - 5 inch
43 lines
1.8 KiB
C
43 lines
1.8 KiB
C
#pragma once
|
|
|
|
// Display backlight (PWM)
|
|
#define CYD8048S043_LCD_BACKLIGHT_LEDC_TIMER LEDC_TIMER_0
|
|
#define CYD8048S043_LCD_BACKLIGHT_LEDC_MODE LEDC_LOW_SPEED_MODE
|
|
#define CYD8048S043_LCD_BACKLIGHT_LEDC_CHANNEL LEDC_CHANNEL_0
|
|
#define CYD8048S043_LCD_BACKLIGHT_LEDC_DUTY_RES LEDC_TIMER_8_BIT
|
|
#define CYD8048S043_LCD_BACKLIGHT_LEDC_FREQUENCY (1000)
|
|
|
|
#define CYD8048S043_LCD_PIN_BACKLIGHT GPIO_NUM_2
|
|
|
|
// Display pins
|
|
#define CYD8048S043_LCD_PIN_HSYNC GPIO_NUM_39 // HSYNC
|
|
#define CYD8048S043_LCD_PIN_VSYNC GPIO_NUM_41 // VSYNC
|
|
#define CYD8048S043_LCD_PIN_DE GPIO_NUM_40 // DE
|
|
#define CYD8048S043_LCD_PIN_PCLK GPIO_NUM_42 // DCLK
|
|
|
|
#define CYD8048S043_LCD_PIN_DATA0 GPIO_NUM_8 // B3
|
|
#define CYD8048S043_LCD_PIN_DATA1 GPIO_NUM_3 // B4
|
|
#define CYD8048S043_LCD_PIN_DATA2 GPIO_NUM_46 // B5
|
|
#define CYD8048S043_LCD_PIN_DATA3 GPIO_NUM_9 // B6
|
|
#define CYD8048S043_LCD_PIN_DATA4 GPIO_NUM_1 // B7
|
|
|
|
#define CYD8048S043_LCD_PIN_DATA5 GPIO_NUM_5 // G2
|
|
#define CYD8048S043_LCD_PIN_DATA6 GPIO_NUM_6 // G3
|
|
#define CYD8048S043_LCD_PIN_DATA7 GPIO_NUM_7 // G4
|
|
#define CYD8048S043_LCD_PIN_DATA8 GPIO_NUM_15 // G5
|
|
#define CYD8048S043_LCD_PIN_DATA9 GPIO_NUM_16 // G6
|
|
#define CYD8048S043_LCD_PIN_DATA10 GPIO_NUM_4 // G7
|
|
|
|
#define CYD8048S043_LCD_PIN_DATA11 GPIO_NUM_45 // R3
|
|
#define CYD8048S043_LCD_PIN_DATA12 GPIO_NUM_48 // R4
|
|
#define CYD8048S043_LCD_PIN_DATA13 GPIO_NUM_47 // R5
|
|
#define CYD8048S043_LCD_PIN_DATA14 GPIO_NUM_21 // R6
|
|
#define CYD8048S043_LCD_PIN_DATA15 GPIO_NUM_14 // R7
|
|
|
|
#define CYD8048S043_LCD_PIN_DISP_EN GPIO_NUM_NC // not connected
|
|
|
|
// Display
|
|
#define CYD8048S043_LCD_HORIZONTAL_RESOLUTION 800
|
|
#define CYD8048S043_LCD_VERTICAL_RESOLUTION 480
|
|
#define CYD8048S043_LCD_DRAW_BUFFER_SIZE (CYD8048S043_LCD_HORIZONTAL_RESOLUTION * CYD8048S043_LCD_VERTICAL_RESOLUTION)
|