mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-08 10:57:51 +00:00
43 lines
883 B
C++
43 lines
883 B
C++
#ifdef MESHTASTIC_INCLUDE_INKHUD
|
|
|
|
/*
|
|
|
|
Shows the Meshtastic logo fullscreen, with accompanying text
|
|
Used for boot and shutdown
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "configuration.h"
|
|
|
|
#include "concurrency/OSThread.h"
|
|
#include "graphics/niche/InkHUD/SystemApplet.h"
|
|
|
|
namespace NicheGraphics::InkHUD
|
|
{
|
|
|
|
class LogoApplet : public SystemApplet, public concurrency::OSThread
|
|
{
|
|
public:
|
|
LogoApplet();
|
|
void onRender() override;
|
|
void onForeground() override;
|
|
void onBackground() override;
|
|
void onShutdown() override;
|
|
void onReboot() override;
|
|
void onApplyingChanges();
|
|
|
|
protected:
|
|
int32_t runOnce() override;
|
|
|
|
std::string textLeft;
|
|
std::string textRight;
|
|
std::string textTitle;
|
|
AppletFont fontTitle;
|
|
bool inverted = false; // Invert colors. Used during shutdown, to restore display health.
|
|
};
|
|
|
|
} // namespace NicheGraphics::InkHUD
|
|
|
|
#endif |