mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-04-18 09:25:06 +00:00
Font size set to 18 for 800x480 displays Fix web server dashboard not rendering when sdcard isn't present Added new driver modules - BM8563 RTC - RX8130CE RTC - MPU6886 IMU - QMI8658 IMU - M5PM1 Power Management Chip Applied the above modules to applicable devicetrees. Added new device: M5Stack StickS3 Added new M5Stack Tab5 St7123 variant. ButtonControl changed to use interupts and xQueue, added AppClose action. And some bonus symbols of course, the apps are hungry for symbols.
18 lines
610 B
C++
18 lines
610 B
C++
#pragma once
|
|
|
|
#include "Tactility/hal/display/DisplayDevice.h"
|
|
#include <memory>
|
|
#include <driver/gpio.h>
|
|
#include <driver/spi_common.h>
|
|
|
|
constexpr auto LCD_SPI_HOST = SPI2_HOST;
|
|
constexpr auto LCD_PIN_CS = GPIO_NUM_41;
|
|
constexpr auto LCD_PIN_DC = GPIO_NUM_45;
|
|
constexpr auto LCD_PIN_RESET = GPIO_NUM_21;
|
|
constexpr auto LCD_HORIZONTAL_RESOLUTION = 135;
|
|
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;
|
|
|
|
std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay();
|