mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-02 11:55:56 +00:00

* Custom AdafruitGFX fonts with extended ASCII encodings * AppletFont handles re-encoding of UTF-8 text * Manual parsing of text which may contain non-ASCII chars * Display emoji reactions, even when unprintable Important to indicate to users that a message has been received, even if meaning is unclear. * Superstitious shrink_to_fit I don't think these help, but they're not hurting! * Use Windows-1252 fonts by default * Spelling * Tidy up nicheGraphics.h * Documentation * Fix inverted logic Slipped in during a last minute renaming while tidying up to push..
20 lines
540 B
C++
20 lines
540 B
C++
#ifdef MESHTASTIC_INCLUDE_INKHUD
|
|
|
|
#include "./BasicExampleApplet.h"
|
|
|
|
using namespace NicheGraphics;
|
|
|
|
// All drawing happens here
|
|
// Our basic example doesn't do anything useful. It just passively prints some text.
|
|
void InkHUD::BasicExampleApplet::onRender()
|
|
{
|
|
printAt(0, 0, "Hello, World!");
|
|
|
|
// If text might contain "special characters", is needs parsing first
|
|
// This applies to data such as text-messages and and node names
|
|
|
|
// std::string greeting = parse("Grüezi mitenand!");
|
|
// printAt(0, 0, greeting);
|
|
}
|
|
|
|
#endif |