mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-13 16:55:08 +00:00
Remove dead code from nicheGraphics.h
Remnants of T-Echo's nicheGraphics.h file, which was used as a template.
This commit is contained in:
parent
e493c74f0c
commit
8de023dfc3
@ -18,16 +18,9 @@
|
|||||||
|
|
||||||
// Shared NicheGraphics components
|
// Shared NicheGraphics components
|
||||||
// --------------------------------
|
// --------------------------------
|
||||||
#include "graphics/niche/Drivers/Backlight/LatchingBacklight.h"
|
|
||||||
#include "graphics/niche/Drivers/EInk/GDEY0213B74.h"
|
#include "graphics/niche/Drivers/EInk/GDEY0213B74.h"
|
||||||
#include "graphics/niche/Inputs/TwoButton.h"
|
#include "graphics/niche/Inputs/TwoButton.h"
|
||||||
|
|
||||||
// Special case - fix T-Echo's touch button
|
|
||||||
// ----------------------------------------
|
|
||||||
// On a handful of T-Echos, LoRa TX triggers the capacitive touch
|
|
||||||
// To avoid this, we lockout the button during TX
|
|
||||||
#include "mesh/RadioLibInterface.h"
|
|
||||||
|
|
||||||
void setupNicheGraphics()
|
void setupNicheGraphics()
|
||||||
{
|
{
|
||||||
using namespace NicheGraphics;
|
using namespace NicheGraphics;
|
||||||
@ -65,14 +58,8 @@ void setupNicheGraphics()
|
|||||||
inkhud->persistence->settings.userTiles.maxCount = 2; // Two applets side-by-side
|
inkhud->persistence->settings.userTiles.maxCount = 2; // Two applets side-by-side
|
||||||
// 270 degrees clockwise
|
// 270 degrees clockwise
|
||||||
inkhud->persistence->settings.optionalFeatures.batteryIcon = true; // Device definitely has a battery
|
inkhud->persistence->settings.optionalFeatures.batteryIcon = true; // Device definitely has a battery
|
||||||
inkhud->persistence->settings.optionalMenuItems.backlight = true; // Until proves capacitive button works by touching it
|
|
||||||
inkhud->persistence->settings.userTiles.count = 1; // One tile only by default, keep things simple for new users
|
inkhud->persistence->settings.userTiles.count = 1; // One tile only by default, keep things simple for new users
|
||||||
|
|
||||||
// Setup backlight controller
|
|
||||||
// Note: AUX button attached further down
|
|
||||||
Drivers::LatchingBacklight *backlight = Drivers::LatchingBacklight::getInstance();
|
|
||||||
backlight->setPin(PIN_EINK_EN);
|
|
||||||
|
|
||||||
// Pick applets
|
// Pick applets
|
||||||
// Note: order of applets determines priority of "auto-show" feature
|
// Note: order of applets determines priority of "auto-show" feature
|
||||||
inkhud->addApplet("All Messages", new InkHUD::AllMessageApplet, true, true); // Activated, autoshown
|
inkhud->addApplet("All Messages", new InkHUD::AllMessageApplet, true, true); // Activated, autoshown
|
||||||
|
Loading…
Reference in New Issue
Block a user