mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-31 07:01:03 +00:00
* chore: todo.txt * chore: comments * fix: no fast refresh on VME290 Reverts a line of code which was accidentally committed * refactor: god class Divide the behavior from the old WindowManager class into several subclasses which each have a clear role. * refactor: cppcheck medium warnings Enough to pass github CI for now * refactor: updateType selection * refactor: don't use a setter for the shared AppletFonts * fix: update prioritization forceUpdate calls weren't being prioritized * refactor: remove unhelpful logging getTimeString is used for parsing our own time, but also the timestamps of messages. The "one time only" log printing will likely fire in unhelpful situations. * fix: " " * refactor: get rid of types.h file for enums * Keep that sneaky todo file out of commits
51 lines
993 B
C++
51 lines
993 B
C++
#ifdef MESHTASTIC_INCLUDE_INKHUD
|
|
|
|
/*
|
|
|
|
Shows info on how to use InkHUD
|
|
- tutorial at first boot
|
|
- additional tips in certain situation (e.g. bad shutdown, region unset)
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "configuration.h"
|
|
|
|
#include "graphics/niche/InkHUD/SystemApplet.h"
|
|
|
|
namespace NicheGraphics::InkHUD
|
|
{
|
|
|
|
class TipsApplet : public SystemApplet
|
|
{
|
|
protected:
|
|
enum class Tip {
|
|
WELCOME,
|
|
FINISH_SETUP,
|
|
SAFE_SHUTDOWN,
|
|
CUSTOMIZATION,
|
|
BUTTONS,
|
|
ROTATION,
|
|
};
|
|
|
|
public:
|
|
TipsApplet();
|
|
|
|
void onRender() override;
|
|
void onActivate() override;
|
|
void onForeground() override;
|
|
void onBackground() override;
|
|
void onButtonShortPress() override;
|
|
|
|
protected:
|
|
void renderWelcome(); // Very first screen of tutorial
|
|
|
|
std::deque<Tip> tipQueue; // List of tips to show, one after another
|
|
|
|
WindowManager *windowManager = nullptr; // For convenience. Set in constructor.
|
|
};
|
|
|
|
} // namespace NicheGraphics::InkHUD
|
|
|
|
#endif |