mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
17 lines
641 B
C++
17 lines
641 B
C++
#pragma once
|
|
|
|
#include <Tactility/hal/display/DisplayDevice.h>
|
|
#include <driver/gpio.h>
|
|
#include <driver/spi_common.h>
|
|
|
|
constexpr auto LCD_SPI_HOST = SPI2_HOST;
|
|
constexpr auto LCD_PIN_CS = GPIO_NUM_12;
|
|
constexpr auto LCD_PIN_DC = GPIO_NUM_11; // RS
|
|
constexpr auto LCD_HORIZONTAL_RESOLUTION = 320;
|
|
constexpr auto LCD_VERTICAL_RESOLUTION = 240;
|
|
constexpr auto LCD_BUFFER_HEIGHT = (LCD_VERTICAL_RESOLUTION / 3);
|
|
constexpr auto LCD_BUFFER_SIZE = (LCD_HORIZONTAL_RESOLUTION * LCD_BUFFER_HEIGHT);
|
|
constexpr auto LCD_SPI_TRANSFER_SIZE_LIMIT = LCD_BUFFER_SIZE * LV_COLOR_DEPTH / 8;
|
|
|
|
std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay();
|