mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
- Create `Include/` folder for all main projects - Fix some issues here and there (found while moving things) - All includes are now in `Tactility/` subfolder and must be included with that prefix. This fixes issues with clashing POSIX headers (e.g. `<semaphore.h>` versus Tactility's `Semaphore.h`)
27 lines
477 B
C++
27 lines
477 B
C++
#pragma once
|
|
|
|
#include <esp_lcd_types.h>
|
|
#include <lvgl.h>
|
|
#include <Tactility/hal/Display.h>
|
|
|
|
extern lv_disp_t* displayHandle;
|
|
|
|
class UnPhoneDisplay : public tt::hal::Display {
|
|
|
|
private:
|
|
|
|
lv_display_t* displayHandle = nullptr;
|
|
|
|
public:
|
|
|
|
bool start() override;
|
|
|
|
bool stop() override;
|
|
|
|
tt::hal::Touch* _Nullable createTouch() override;
|
|
|
|
lv_display_t* _Nullable getLvglDisplay() const override { return displayHandle; }
|
|
};
|
|
|
|
tt::hal::Display* createDisplay();
|