mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
- Create real drivers instead of wrapping M5Unified/M5GFX - Display HAL improvements (better default base class behaviour) - Fixed bug with LVGL statusbar service locking (would hang indefinitely waiting for mutex, causing WDT issues) - Fixes for `Critical.h` - Fixes and improvements for `Dispatcher` and `DispatcherThread`
35 lines
745 B
C++
35 lines
745 B
C++
#pragma once
|
|
|
|
#include "lvgl.h"
|
|
#include "hal/Display.h"
|
|
|
|
#include <esp_lcd_types.h>
|
|
|
|
extern lv_disp_t* displayHandle;
|
|
|
|
class Core2Display : 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;
|
|
|
|
bool supportsBacklightDuty() const override { return false; }
|
|
|
|
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();
|