Add a new screen for heltec_wireless_paper. (#6894)

Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
This commit is contained in:
Quency-D
2025-05-29 09:10:25 -05:00
committed by GitHub
co-authored by GitHub Ben Meadors
parent cb9429e83e
commit ba53543354
7 changed files with 624 additions and 6 deletions
+5 -1
View File
@@ -4,6 +4,7 @@
#include "GxEPD2_BW.h"
#include <OLEDDisplay.h>
#include "EinkMultiWrapper.h"
/**
* An adapter class that allows using the GxEPD2 library as if it was an OLEDDisplay implementation.
@@ -64,8 +65,11 @@ class EInkDisplay : public OLEDDisplay
virtual bool connect() override;
// AdafruitGFX display object - instantiated in connect(), variant specific
#if defined(HELTEC_WIRELESS_PAPER)
EInkMultiWrapper<EINK_DISPLAY_MODEL1, EINK_DISPLAY_MODEL2> *adafruitDisplay;
#else
GxEPD2_BW<EINK_DISPLAY_MODEL, EINK_DISPLAY_MODEL::HEIGHT> *adafruitDisplay = NULL;
#endif
// If display uses HSPI
#if defined(HELTEC_WIRELESS_PAPER) || defined(HELTEC_WIRELESS_PAPER_V1_0) || defined(HELTEC_VISION_MASTER_E213) || \
defined(HELTEC_VISION_MASTER_E290) || defined(TLORA_T3S3_EPAPER) || defined(CROWPANEL_ESP32S3_5_EPAPER) || \