mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-22 11:17:49 +10:00
This should explode in multiple ways. Let's see.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
/*
|
||||
|
||||
NicheGraphics setup for M5Stack CoreInk (1.54" 200x200 GDEW0154M09).
|
||||
|
||||
The GDEW0154M09 uses an SSD1681-class controller, so the GDEY0154D67 panel
|
||||
profile (same controller family, same resolution) drives it directly.
|
||||
|
||||
LoRa and the e-ink panel share the default SPI bus (SCLK=18, MOSI=23);
|
||||
use the board's default SPI instance rather than spinning up a separate
|
||||
HSPI peripheral on the same pins.
|
||||
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "configuration.h"
|
||||
|
||||
#ifdef MESHTASTIC_INCLUDE_NICHE_GRAPHICS
|
||||
|
||||
#include "graphics/BaseUIEInkDisplay.h"
|
||||
#include "graphics/eink/Panels/GDEY0154D67.h"
|
||||
|
||||
class M5CoreInkPanel : public NicheGraphics::Panels::GDEY0154D67
|
||||
{
|
||||
protected:
|
||||
SPIClass *beginSpi() override
|
||||
{
|
||||
SPI.begin();
|
||||
return &SPI;
|
||||
}
|
||||
};
|
||||
|
||||
void setupNicheGraphics() {}
|
||||
|
||||
NicheGraphics::BaseUIEInkDisplay *setupNicheGraphicsBaseUI()
|
||||
{
|
||||
auto *panel = new M5CoreInkPanel();
|
||||
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
|
||||
@@ -1,25 +1,22 @@
|
||||
[env:m5stack-coreink]
|
||||
extends = esp32_base
|
||||
extends = esp32_base, niche
|
||||
board = m5stack-coreink
|
||||
board_check = true
|
||||
build_src_filter =
|
||||
build_src_filter =
|
||||
${esp32_base.build_src_filter}
|
||||
build_flags =
|
||||
${niche.build_src_filter}
|
||||
build_flags =
|
||||
${esp32_base.build_flags}
|
||||
${niche.build_flags}
|
||||
-I variants/esp32/m5stack_coreink
|
||||
;-D RADIOLIB_VERBOSE
|
||||
-Ofast
|
||||
-D__MCUXPRESSO
|
||||
-DEINK_DISPLAY_MODEL=GxEPD2_154_M09
|
||||
-DEINK_WIDTH=200
|
||||
-DEINK_HEIGHT=200
|
||||
-DUSER_SETUP_LOADED
|
||||
-DM5_COREINK
|
||||
-DM5_COREINK
|
||||
-DM5STACK
|
||||
lib_deps =
|
||||
lib_deps =
|
||||
${esp32_base.lib_deps}
|
||||
# renovate: datasource=custom.pio depName=GxEPD2 packageName=zinggjm/library/GxEPD2
|
||||
zinggjm/GxEPD2@1.6.8
|
||||
# renovate: datasource=custom.pio depName=SensorLib packageName=lewisxhe/library/SensorLib
|
||||
lewisxhe/SensorLib@0.3.4
|
||||
lib_ignore =
|
||||
|
||||
Reference in New Issue
Block a user