diff --git a/src/lgfx/v1/panel/Panel_SSD1963.cpp b/src/lgfx/v1/panel/Panel_SSD1963.cpp index 835ff3f5..c24ca5fe 100644 --- a/src/lgfx/v1/panel/Panel_SSD1963.cpp +++ b/src/lgfx/v1/panel/Panel_SSD1963.cpp @@ -142,6 +142,15 @@ namespace lgfx return true; } + void Panel_SSD1963::setBrightness(uint8_t brightness) + { + if (_light) { Panel_LCD::setBrightness(brightness); } + else { + uint8_t cmd[] = { 0xBE, 6, 0x05, brightness, 0x01, 0xFF, 0x00, 0x00, 0xFF, 0xFF }; + command_list(cmd); + } + } + color_depth_t Panel_SSD1963::setColorDepth(color_depth_t depth) { uint8_t mode = 0x00; diff --git a/src/lgfx/v1/panel/Panel_SSD1963.hpp b/src/lgfx/v1/panel/Panel_SSD1963.hpp index 2d426f15..80b4a047 100644 --- a/src/lgfx/v1/panel/Panel_SSD1963.hpp +++ b/src/lgfx/v1/panel/Panel_SSD1963.hpp @@ -66,6 +66,8 @@ namespace lgfx _read_depth = rgb565_2Byte; } + void setBrightness(uint8_t brightness) override; + void setHSync(uint_fast16_t front, uint_fast16_t sync, uint_fast16_t back, uint_fast16_t move = 0, uint_fast16_t lpspp = 0); void setVSync(uint_fast16_t front, uint_fast16_t sync, uint_fast16_t back, uint_fast16_t move = 0);