mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
- Implemented Elecrow CrowPanel Basic 2.8" - Change default "invert" setting for ILI934x driver from `true` to `false` - Created `Xpt2046` driver subproject - Refactored unPhone to use new `Xpt2046` driver subproject
19 lines
718 B
C
19 lines
718 B
C
#pragma once
|
|
|
|
#define CROWPANEL_LCD_SPI_HOST SPI2_HOST
|
|
#define CROWPANEL_LCD_PIN_CS GPIO_NUM_15
|
|
#define CROWPANEL_TOUCH_PIN_CS GPIO_NUM_33
|
|
#define CROWPANEL_LCD_PIN_DC GPIO_NUM_2 // RS
|
|
#define CROWPANEL_LCD_HORIZONTAL_RESOLUTION 320
|
|
#define CROWPANEL_LCD_VERTICAL_RESOLUTION 240
|
|
#define CROWPANEL_LCD_BITS_PER_PIXEL 16
|
|
#define CROWPANEL_LCD_SPI_TRANSFER_HEIGHT (CROWPANEL_LCD_VERTICAL_RESOLUTION / 10)
|
|
|
|
// Backlight (PWM)
|
|
#define CROWPANEL_LCD_BACKLIGHT_LEDC_TIMER LEDC_TIMER_0
|
|
#define CROWPANEL_LCD_BACKLIGHT_LEDC_MODE LEDC_LOW_SPEED_MODE
|
|
#define CROWPANEL_LCD_BACKLIGHT_LEDC_CHANNEL LEDC_CHANNEL_0
|
|
#define CROWPANEL_LCD_BACKLIGHT_LEDC_DUTY_RES LEDC_TIMER_8_BIT
|
|
#define CROWPANEL_LCD_BACKLIGHT_LEDC_FREQUENCY (4000)
|
|
|