Add 2.9 inch EPD support
This commit is contained in:
parent
23ef2a64cc
commit
d58c38c8c4
5 changed files with 93 additions and 29 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue