gxepd: use a crc to track damage !

This commit is contained in:
Florent committed 2025-09-03 18:17:37 +02:00
1 parent 2da88587f8
commit 476da110df
4 files changed
+39 -3

No files matched your search

+3
View File
@@ -17,6 +17,7 @@
#define GxEPD2_DRIVER_CLASS GxEPD2_150_BN // DEPG0150BN 200x200, SSD1681, (FPC8101), TTGO T5 V2.4.1
#include <epd/GxEPD2_150_BN.h> // 1.54" b/w
#include <CRC32.h>
#include "DisplayDriver.h"
@@ -29,6 +30,8 @@ class GxEPDDisplay : public DisplayDriver {
bool _init = false;
bool _isOn = false;
uint16_t _curr_color;
CRC32 display_crc;
int last_display_crc_value = 0;
public:
// there is a margin in y...