mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
- Implement SPI devices in dts files for all devices - Removed `tt::hal::spi` HAL and its configurations - Fix for devicetree generator "boolean" support - Remove unused custom locks in all `DisplayDevice` implementations - Fixed some bugs with devices - Updated XPT2046 driver - Fix for `WifiEsp` deadlock - Export a lot of new `math.h` symbols with `tt_init.cpp` - Created `SpiDeviceLock` in `TactilityCore` as a wrapper for kernel SPI locking - Improved `TactilityKernel` SPI driver.
37 lines
1.2 KiB
C++
37 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include <EspLcdDisplay.h>
|
|
#include <lvgl.h>
|
|
|
|
class St7701Display final : public EspLcdDisplay {
|
|
|
|
std::shared_ptr<tt::hal::touch::TouchDevice> touchDevice;
|
|
|
|
bool createIoHandle(esp_lcd_panel_io_handle_t& outHandle) override;
|
|
|
|
bool createPanelHandle(esp_lcd_panel_io_handle_t ioHandle, esp_lcd_panel_handle_t& panelHandle) override;
|
|
|
|
lvgl_port_display_cfg_t getLvglPortDisplayConfig(esp_lcd_panel_io_handle_t ioHandle, esp_lcd_panel_handle_t panelHandle) override;
|
|
|
|
bool isRgbPanel() const override { return true; }
|
|
|
|
lvgl_port_display_rgb_cfg_t getLvglPortDisplayRgbConfig(esp_lcd_panel_io_handle_t ioHandle, esp_lcd_panel_handle_t panelHandle) override;
|
|
|
|
public:
|
|
|
|
St7701Display() : EspLcdDisplay() {}
|
|
|
|
std::string getName() const override { return "ST7701S"; }
|
|
|
|
std::string getDescription() const override { return "ST7701S RGB display"; }
|
|
|
|
std::shared_ptr<tt::hal::touch::TouchDevice> getTouchDevice() override;
|
|
|
|
void setBacklightDuty(uint8_t backlightDuty) override;
|
|
|
|
bool supportsBacklightDuty() const override { return true; }
|
|
|
|
// TODO: Find out why it crashes
|
|
bool supportsDisplayDriver() const override { return false; }
|
|
};
|