Add 2.9 inch EPD support

This commit is contained in:
Djuri 2024-03-18 19:32:34 +01:00
parent 23ef2a64cc
commit d58c38c8c4
5 changed files with 93 additions and 29 deletions

View file

@ -5,6 +5,8 @@
#include <Preferences.h>
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <GxEPD2.h>
#include <GxEPD2_BW.h>
#include <mutex>
#include <utils.hpp>
@ -16,6 +18,14 @@ extern Adafruit_MCP23X17 mcp2;
extern Preferences preferences;
extern std::mutex mcpMutex;
#ifdef VERSION_EPD_2_13
#define EPD_CLASS GxEPD2_213_B74
#endif
#ifdef VERSION_EPD_2_9
#define EPD_CLASS GxEPD2_290_T94
#endif
const PROGMEM int SCREEN_BLOCK_HEIGHT = 0;
const PROGMEM int SCREEN_MSCW_TIME = 1;
const PROGMEM int SCREEN_BTC_TICKER = 2;