mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
23 lines
836 B
C++
23 lines
836 B
C++
#pragma once
|
|
|
|
#include "Tactility/hal/display/DisplayDevice.h"
|
|
#include <memory>
|
|
|
|
// Display
|
|
#define CYD2432S028RV3_LCD_SPI_HOST SPI2_HOST
|
|
#define CYD2432S028RV3_LCD_HORIZONTAL_RESOLUTION 240
|
|
#define CYD2432S028RV3_LCD_VERTICAL_RESOLUTION 320
|
|
#define CYD2432S028RV3_LCD_DRAW_BUFFER_HEIGHT (CYD2432S028RV3_LCD_VERTICAL_RESOLUTION / 10)
|
|
#define CYD2432S028RV3_LCD_DRAW_BUFFER_SIZE (CYD2432S028RV3_LCD_HORIZONTAL_RESOLUTION * CYD2432S028RV3_LCD_DRAW_BUFFER_HEIGHT)
|
|
#define CYD2432S028RV3_LCD_PIN_CS GPIO_NUM_15
|
|
#define CYD2432S028RV3_LCD_PIN_DC GPIO_NUM_2
|
|
|
|
// Touch (Software SPI)
|
|
#define CYD_TOUCH_MISO_PIN GPIO_NUM_39
|
|
#define CYD_TOUCH_MOSI_PIN GPIO_NUM_32
|
|
#define CYD_TOUCH_SCK_PIN GPIO_NUM_25
|
|
#define CYD_TOUCH_CS_PIN GPIO_NUM_33
|
|
#define CYD_TOUCH_IRQ_PIN GPIO_NUM_36
|
|
|
|
std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay();
|