mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-28 20:52:02 +00:00
Open Sauce Demo: custom applet selection (#7219)
This commit is contained in:
@@ -77,16 +77,18 @@ void setupNicheGraphics()
|
||||
inkhud->persistence->settings.userTiles.maxCount = 2; // How many tiles can the display handle?
|
||||
inkhud->persistence->settings.rotation = 3; // 270 degrees clockwise
|
||||
inkhud->persistence->settings.userTiles.count = 1; // One tile only by default, keep things simple for new users
|
||||
|
||||
inkhud->persistence->settings.optionalFeatures.notifications = false; // No notifications. Busy mesh.
|
||||
// Pick applets
|
||||
// Note: order of applets determines priority of "auto-show" feature
|
||||
inkhud->addApplet("All Messages", new InkHUD::AllMessageApplet, true, true); // Activated, autoshown
|
||||
inkhud->addApplet("DMs", new InkHUD::DMApplet); // -
|
||||
inkhud->addApplet("Channel 0", new InkHUD::ThreadedMessageApplet(0)); // -
|
||||
inkhud->addApplet("Channel 1", new InkHUD::ThreadedMessageApplet(1)); // -
|
||||
inkhud->addApplet("Positions", new InkHUD::PositionsApplet, true); // Activated
|
||||
inkhud->addApplet("Recents List", new InkHUD::RecentsListApplet); // -
|
||||
inkhud->addApplet("Heard", new InkHUD::HeardApplet, true, false, 0); // Activated, not autoshown, default on tile 0
|
||||
// Custom selection for OpenSauce
|
||||
inkhud->addApplet("Channel 0", new InkHUD::ThreadedMessageApplet(0), true, false, 0); // Default tile 0
|
||||
inkhud->addApplet("Channel 1", new InkHUD::ThreadedMessageApplet(1), true);
|
||||
inkhud->addApplet("Channel 2", new InkHUD::ThreadedMessageApplet(2), true);
|
||||
inkhud->addApplet("DMs", new InkHUD::DMApplet, true, true); // Autoshown if new message
|
||||
inkhud->addApplet("Heard", new InkHUD::HeardApplet, true, false, 1); // Default tile 1
|
||||
// Disabled by default
|
||||
inkhud->addApplet("All Messages", new InkHUD::AllMessageApplet);
|
||||
inkhud->addApplet("Positions", new InkHUD::PositionsApplet);
|
||||
inkhud->addApplet("Recents List", new InkHUD::RecentsListApplet);
|
||||
|
||||
// Start running InkHUD
|
||||
inkhud->begin();
|
||||
|
||||
Reference in New Issue
Block a user