mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
- Implement `UiScale` in `hal::Configuration`: small screens with no touch can now opt for a more optimized experience (e.g. Cardputer, Waveshare 1.47, Waveshare 1.3", etc.) - Fix for Cardputer UART configuration and added I2C configuration - Fix for software keyboard bug in Gui - Removed deprecated fields from `hal::Configuration` - Updated the simulator devices to use the new HAL config - add `bool tt::hal::hasDevice(Device::Type)` - Cleanup of `AppList` app code - Improve `Gpio` app for small screen devices - Added various ESP32 GCC wrappers to wrap LVGL functions (with manipulations for small screen devices) - Moved `Launcher` assets to `assets/` subfolder - Optimized `Toolbar` for small screen devices - Stop showing `system/` partition in `FileBrowser` because it's read-only and not very useful. Created `config::SHOW_SYSTEM_PARTITION` to override this behaviour. - Hide apps when their required hardware isn't available (I2C, UART, PowerDevice) - Fix for `CYD-2432S032C` DPI setting
29 lines
1.0 KiB
C++
29 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include "SdlTouch.h"
|
|
#include <Tactility/hal/display/DisplayDevice.h>
|
|
|
|
/** Hack: variable comes from LvglTask.cpp */
|
|
extern lv_disp_t* displayHandle;
|
|
|
|
class SdlDisplay final : public tt::hal::display::DisplayDevice {
|
|
|
|
public:
|
|
|
|
std::string getName() const override { return "SDL Display"; }
|
|
std::string getDescription() const override { return ""; }
|
|
|
|
bool start() override { return true; }
|
|
bool stop() override { tt_crash("Not supported"); }
|
|
|
|
bool supportsLvgl() const override { return true; }
|
|
bool startLvgl() override { return displayHandle != nullptr; }
|
|
bool stopLvgl() override { tt_crash("Not supported"); }
|
|
lv_display_t* _Nullable getLvglDisplay() const override { return displayHandle; }
|
|
|
|
std::shared_ptr<tt::hal::touch::TouchDevice> _Nullable getTouchDevice() override { return std::make_shared<SdlTouch>(); }
|
|
|
|
bool supportsDisplayDriver() const override { return false; }
|
|
std::shared_ptr<tt::hal::display::DisplayDriver> _Nullable getDisplayDriver() override { return nullptr; }
|
|
};
|