Add display of CW Ident to Nextion display

This commit is contained in:
phl0 2016-09-15 10:44:21 +02:00
parent bce0056101
commit 756f5010a9
No known key found for this signature in database
GPG Key ID: 48EA1E640798CA9A
2 changed files with 16 additions and 0 deletions

View File

@ -233,6 +233,20 @@ void CNextion::clearFusionInt()
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)
{
// Update the clock display in IDLE mode every 400ms

View File

@ -50,6 +50,8 @@ protected:
virtual void writeFusionInt(const char* source, const char* dest, const char* type, const char* origin);
virtual void clearFusionInt();
virtual void sendCWInt();
virtual void clockInt(unsigned int ms);
private: