mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-22 03:02:08 +10:00
28 lines
667 B
C
28 lines
667 B
C
/*
|
|
|
|
NicheGraphics setup for ME25LS01-4Y10TD e-ink board (GDEY042T81 4.2" on SPI1).
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "configuration.h"
|
|
|
|
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
|
|
|
#include "graphics/BaseUIEInkDisplay.h"
|
|
#include "graphics/eink/Panels/GDEY042T81.h"
|
|
|
|
void setupNicheGraphics() {}
|
|
|
|
NicheGraphics::BaseUIEInkDisplay *setupNicheGraphicsBaseUI()
|
|
{
|
|
auto *panel = new NicheGraphics::Panels::GDEY042T81();
|
|
NicheGraphics::Drivers::EInk *driver = panel->create();
|
|
auto *display = new NicheGraphics::BaseUIEInkDisplay(driver, panel->rotation());
|
|
display->setDisplayResilience(10, 2.0f);
|
|
return display;
|
|
}
|
|
|
|
#endif // MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|