Tactility/Boards/UnPhone/Source/hal/UnPhoneDisplay.h
Ken Van Hoeylandt c74006f8b6
Created Drivers folder with ILI934x subproject (#209)
Refactored all existing boards to re-use the ILI934x driver code.
2025-02-08 18:54:09 +01:00

29 lines
637 B
C++

#pragma once
#include <esp_lcd_types.h>
#include <lvgl.h>
#include <Tactility/hal/Display.h>
class UnPhoneDisplay : public tt::hal::Display {
private:
lv_display_t* displayHandle = nullptr;
uint8_t* buffer = nullptr;
public:
std::string getName() const final { return "HX8357"; }
std::string getDescription() const final { return "SPI display"; }
bool start() override;
bool stop() override;
std::shared_ptr<tt::hal::Touch> _Nullable createTouch() override;
lv_display_t* _Nullable getLvglDisplay() const override { return displayHandle; }
};
std::shared_ptr<tt::hal::Display> createDisplay();