Cleanup
This commit is contained in:
parent
6467c70f56
commit
f8ed2efacb
1 changed files with 2 additions and 3 deletions
|
@ -100,8 +100,7 @@ uint8_t Display::getBrightness(){
|
|||
|
||||
void Display::setCurrentBrightness(uint8_t brightness){
|
||||
mBrightness = brightness;
|
||||
// auto duty = abs(255 - static_cast<int>(mBrightness));
|
||||
auto duty = abs(static_cast<int>(mBrightness));
|
||||
auto duty = static_cast<int>(mBrightness);
|
||||
ledcWrite(LCD_BACKLIGHT_LEDC_CHANNEL, duty);
|
||||
// Serial.print("Current Brightness:");
|
||||
// Serial.println(mBrightness);
|
||||
|
@ -197,4 +196,4 @@ void Display::flushDisplay(lv_disp_drv_t *disp, const lv_area_t *area, lv_color_
|
|||
tft.endWrite();
|
||||
|
||||
lv_disp_flush_ready(disp);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue