mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-17 00:51:30 +10:00
36 lines
625 B
C++
36 lines
625 B
C++
#ifdef MESHTASTIC_INCLUDE_INKHUD
|
|
|
|
/*
|
|
|
|
A bare-minimum example of an InkHUD applet.
|
|
Only prints Hello World.
|
|
|
|
In variants/<your device>/nicheGraphics.h:
|
|
|
|
- include this .h file
|
|
- add the following line of code:
|
|
windowManager->addApplet("Basic", new InkHUD::BasicExampleApplet);
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "configuration.h"
|
|
|
|
#include "graphics/niche/Applet.h"
|
|
|
|
namespace NicheGraphics::InkHUD
|
|
{
|
|
|
|
class BasicExampleApplet : public Applet
|
|
{
|
|
public:
|
|
// You must have an onRender() method
|
|
// All drawing happens here
|
|
|
|
void onRender(bool full) override;
|
|
};
|
|
|
|
} // namespace NicheGraphics::InkHUD
|
|
|
|
#endif |