mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
This commit contains @josemalm32 's implementation for the Guition JC1060P470CIWY (see https://github.com/ByteWelder/Tactility/issues/427) I've added these changes: - Updated the branch for the new logging method - Updated the branch for the PR that I mentioned in the above linked issue - Replaced the manually pasted in esp_lcd_jd9165 driver with the one from the component registry - Updated Spanish to English - Updated all drivers' mutexes/locks - Fixed the display color format - Fixed bug in power deinit - Renamed I2C bus in config - Added device to continuous integration - Renamed several Guition devices from CYD to Guition - Fix for `EspLcdDisplayV2` init for when features are not supported - Pin esp_wifi_remote to version 1.2.3 - Fix in `WifiManage` logging - Fix for `WifiEsp.cpp`'s check for wifi presence - Fix for `WifiEsp`'s scan list logging - Fix for `gcc_soft_float_symbols` in TactiltyC
24 lines
758 B
C++
24 lines
758 B
C++
#pragma once
|
|
|
|
#include "Display.h"
|
|
|
|
#include <Tactility/hal/display/DisplayDevice.h>
|
|
#include <memory>
|
|
#include <driver/gpio.h>
|
|
#include <driver/spi_common.h>
|
|
|
|
// Display backlight (PWM)
|
|
constexpr auto LCD_PIN_BACKLIGHT = GPIO_NUM_27;
|
|
|
|
// Display
|
|
constexpr auto LCD_SPI_HOST = SPI2_HOST;
|
|
constexpr auto LCD_PIN_CS = GPIO_NUM_15;
|
|
constexpr auto LCD_PIN_DC = GPIO_NUM_2;
|
|
constexpr auto LCD_HORIZONTAL_RESOLUTION = 240;
|
|
constexpr auto LCD_VERTICAL_RESOLUTION = 320;
|
|
constexpr auto LCD_BUFFER_HEIGHT = LCD_VERTICAL_RESOLUTION / 10;
|
|
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();
|