Display driver simplified and implemented gamma (#133)

This commit is contained in:
Ken Van Hoeylandt
2024-12-18 16:43:41 +01:00
committed by GitHub
parent f34440eb6f
commit da3a93ce73
10 changed files with 150 additions and 47 deletions
@@ -13,7 +13,6 @@ private:
esp_lcd_panel_io_handle_t ioHandle = nullptr;
esp_lcd_panel_handle_t panelHandle = nullptr;
lv_display_t* displayHandle = nullptr;
uint8_t lastBacklightDuty = 255;
public:
@@ -28,9 +27,11 @@ public:
tt::hal::Touch* _Nullable createTouch() override;
void setBacklightDuty(uint8_t backlightDuty) override;
uint8_t getBacklightDuty() const override { return lastBacklightDuty; }
bool supportsBacklightDuty() const override { return true; }
void setGammaCurve(uint8_t index) override;
uint8_t getGammaCurveCount() const override { return 4; };
lv_display_t* _Nullable getLvglDisplay() const override { return displayHandle; }
};