#pragma once #include #include #include extern lv_disp_t* displayHandle; 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 _Nullable createTouch() override; lv_display_t* _Nullable getLvglDisplay() const override { return displayHandle; } }; std::shared_ptr createDisplay();