mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
Implemented more consistent naming: - Moved all HAL devices into their own namespace (and related folder) - Post-fixed all HAL device names with "Device"
29 lines
694 B
C++
29 lines
694 B
C++
#pragma once
|
|
|
|
#include "Tactility/hal/display/DisplayDevice.h"
|
|
#include <esp_lcd_types.h>
|
|
#include <lvgl.h>
|
|
|
|
class UnPhoneDisplay : public tt::hal::display::DisplayDevice {
|
|
|
|
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::TouchDevice> _Nullable createTouch() override;
|
|
|
|
lv_display_t* _Nullable getLvglDisplay() const override { return displayHandle; }
|
|
};
|
|
|
|
std::shared_ptr<tt::hal::display::DisplayDevice> createDisplay();
|