mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
This commit contains @josemalm32 's implementation for the Guition JC1060P470CIWY (see https://github.com/ByteWelder/Tactility/issues/427) I've added these changes: - Updated the branch for the new logging method - Updated the branch for the PR that I mentioned in the above linked issue - Replaced the manually pasted in esp_lcd_jd9165 driver with the one from the component registry - Updated Spanish to English - Updated all drivers' mutexes/locks - Fixed the display color format - Fixed bug in power deinit - Renamed I2C bus in config - Added device to continuous integration - Renamed several Guition devices from CYD to Guition - Fix for `EspLcdDisplayV2` init for when features are not supported - Pin esp_wifi_remote to version 1.2.3 - Fix in `WifiManage` logging - Fix for `WifiEsp.cpp`'s check for wifi presence - Fix for `WifiEsp`'s scan list logging - Fix for `gcc_soft_float_symbols` in TactiltyC
45 lines
1.4 KiB
C++
45 lines
1.4 KiB
C++
#pragma once
|
|
|
|
#include <EspLcdDisplayV2.h>
|
|
#include <Tactility/RecursiveMutex.h>
|
|
|
|
#include <esp_lcd_mipi_dsi.h>
|
|
#include <esp_ldo_regulator.h>
|
|
|
|
class Jd9165Display final : public EspLcdDisplayV2 {
|
|
|
|
class NoLock final : public tt::Lock {
|
|
bool lock(TickType_t timeout) const override { return true; }
|
|
void unlock() const override { /* NO-OP */ }
|
|
};
|
|
|
|
esp_lcd_dsi_bus_handle_t mipiDsiBus = nullptr;
|
|
esp_ldo_channel_handle_t ldoChannel = nullptr;
|
|
|
|
bool createMipiDsiBus();
|
|
|
|
protected:
|
|
|
|
bool createIoHandle(esp_lcd_panel_io_handle_t& ioHandle) override;
|
|
|
|
esp_lcd_panel_dev_config_t createPanelConfig(std::shared_ptr<EspLcdConfiguration> espLcdConfiguration, gpio_num_t resetPin) override;
|
|
|
|
bool createPanelHandle(esp_lcd_panel_io_handle_t ioHandle, const esp_lcd_panel_dev_config_t& panelConfig, esp_lcd_panel_handle_t& panelHandle) override;
|
|
|
|
bool useDsiPanel() const override { return true; }
|
|
|
|
lvgl_port_display_dsi_cfg_t getLvglPortDisplayDsiConfig(esp_lcd_panel_io_handle_t /*ioHandle*/, esp_lcd_panel_handle_t /*panelHandle*/) override;
|
|
|
|
public:
|
|
|
|
Jd9165Display(
|
|
const std::shared_ptr<EspLcdConfiguration>& configuration
|
|
) : EspLcdDisplayV2(configuration, std::make_shared<NoLock>()) {}
|
|
|
|
~Jd9165Display() override;
|
|
|
|
std::string getName() const override { return "JD9165"; }
|
|
|
|
std::string getDescription() const override { return "JD9165 MIPI-DSI 1024x600 display"; }
|
|
};
|