Add display of CW Ident to Nextion display
This commit is contained in:
parent
bce0056101
commit
756f5010a9
2 changed files with 16 additions and 0 deletions
14
Nextion.cpp
14
Nextion.cpp
|
@ -233,6 +233,20 @@ void CNextion::clearFusionInt()
|
||||||
sendCommand("t2.txt=\"\"");
|
sendCommand("t2.txt=\"\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CNextion::sendCWInt()
|
||||||
|
{
|
||||||
|
sendCommand("page MMDVM");
|
||||||
|
|
||||||
|
char command[30];
|
||||||
|
::sprintf(command, "dim=%u", m_brightness);
|
||||||
|
sendCommand(command);
|
||||||
|
|
||||||
|
::sprintf(command, "t0.txt=\"%-6s / %u\"", m_callsign.c_str(), m_dmrid);
|
||||||
|
|
||||||
|
sendCommand(command);
|
||||||
|
sendCommand("t1.txt=\"Sending CW Ident\"");
|
||||||
|
}
|
||||||
|
|
||||||
void CNextion::clockInt(unsigned int ms)
|
void CNextion::clockInt(unsigned int ms)
|
||||||
{
|
{
|
||||||
// Update the clock display in IDLE mode every 400ms
|
// Update the clock display in IDLE mode every 400ms
|
||||||
|
|
|
@ -50,6 +50,8 @@ protected:
|
||||||
virtual void writeFusionInt(const char* source, const char* dest, const char* type, const char* origin);
|
virtual void writeFusionInt(const char* source, const char* dest, const char* type, const char* origin);
|
||||||
virtual void clearFusionInt();
|
virtual void clearFusionInt();
|
||||||
|
|
||||||
|
virtual void sendCWInt();
|
||||||
|
|
||||||
virtual void clockInt(unsigned int ms);
|
virtual void clockInt(unsigned int ms);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue