mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
Remove dependencies M5Unified and M5GFX because: - Sometimes the release doesn't even compile - The amount of functions is too close to the limit (I recently had to remove some code/dependency to be able to make a build at all) - Graphics performance issue since last update - Touch screen performance issues (not perfect yet, but better) - Compatibility issues with Tactility SPI/I2C versus M5Unified/M5GFX variants.
36 lines
804 B
C++
36 lines
804 B
C++
#pragma once
|
|
|
|
#include "lvgl.h"
|
|
#include "hal/Display.h"
|
|
|
|
#include <esp_lcd_types.h>
|
|
|
|
extern lv_disp_t* displayHandle;
|
|
|
|
class CoreS3Display : public tt::hal::Display {
|
|
|
|
private:
|
|
|
|
esp_lcd_panel_io_handle_t ioHandle = nullptr;
|
|
esp_lcd_panel_handle_t panelHandle = nullptr;
|
|
lv_display_t* displayHandle = nullptr;
|
|
|
|
public:
|
|
|
|
bool start() override;
|
|
|
|
bool stop() override;
|
|
|
|
tt::hal::Touch* _Nullable createTouch() override;
|
|
|
|
void setBacklightDuty(uint8_t backlightDuty) override;
|
|
bool supportsBacklightDuty() const override { return true; }
|
|
|
|
void setGammaCurve(uint8_t index) override;
|
|
uint8_t getGammaCurveCount() const override { return 4; };
|
|
|
|
lv_display_t* _Nullable getLvglDisplay() const override { return displayHandle; }
|
|
};
|
|
|
|
tt::hal::Display* createDisplay();
|