Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion boards/lilygo-t5-epaper-s3-pro/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ lib_deps =
; epdiy intentionally disabled here in favor of EPD_Painter.
;https://github.com/bmorcelli/epdiy
;symlink://C:/Projetos/EPD_Painter
https://github.com/bmorcelli/EPD_Painter
https://github.com/tonywestonuk/EPD_Painter

lib_ignore =
GFX Library for Arduino
Expand Down
3 changes: 2 additions & 1 deletion src/tft.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifndef __TFT_H
#define __TFT_H
#if defined(USE_EPD_PAINTER)
#define EPD_PAINTER_ENABLE_AUTO_SHUTDOWN 0
// #define EPD_PAINTER_PRESET_LILYGO_T5_S3_H752
// #define EPD_PAINTER_PRESET_LILYGO_T5_S3_GPS
#include <EPD_Painter_presets.h>
Expand Down Expand Up @@ -33,6 +32,7 @@ class Ard_eSPI : public EPD_PainterAdafruit {
_textsize = 1;
_textcolor = BLACK;
_textbgcolor = WHITE;
EPD_PainterAdafruit::setAutoShutdown(false);
bool r = EPD_PainterAdafruit::begin();
EPD_PainterAdafruit::setQuality(EPD_Painter::Quality::QUALITY_HIGH);
EPD_PainterAdafruit::clear();
Expand All @@ -43,6 +43,7 @@ class Ard_eSPI : public EPD_PainterAdafruit {
inline void display(bool a = false) {
(void)a;
if (xHandle != nullptr) vTaskSuspend(xHandle);
clearDirtyAreas(10);
paint();
if (xHandle != nullptr) vTaskResume(xHandle);
}
Expand Down