mirror of
https://github.com/lora-aprs/LoRa_APRS_iGate.git
synced 2025-12-06 07:42:00 +01:00
28 lines
629 B
C++
28 lines
629 B
C++
#include <logger.h>
|
|
#include <TimeLib.h>
|
|
#include "TaskDisplay.h"
|
|
|
|
DisplayTask::DisplayTask()
|
|
: Task("DisplayTask", 0)
|
|
{
|
|
}
|
|
|
|
DisplayTask::~DisplayTask()
|
|
{
|
|
}
|
|
|
|
bool DisplayTask::setup(std::shared_ptr<Configuration> config, std::shared_ptr<BoardConfig> boardConfig)
|
|
{
|
|
Display::instance().setup(boardConfig);
|
|
std::shared_ptr<StatusFrame> statusFrame = std::shared_ptr<StatusFrame>(new StatusFrame(TaskManager::instance().getTasks()));
|
|
Display::instance().setStatusFrame(statusFrame);
|
|
_stateInfo = "";
|
|
return true;
|
|
}
|
|
|
|
bool DisplayTask::loop(std::shared_ptr<Configuration> config)
|
|
{
|
|
Display::instance().update();
|
|
return true;
|
|
}
|