From 7ab66136ee4634e81acea79955328fc34f1f38ab Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 15 Sep 2016 23:03:48 +0200 Subject: [PATCH] Add CW transmission info to HD44780 LCD displays --- HD44780.cpp | 12 ++++++++++++ HD44780.h | 3 +++ 2 files changed, 15 insertions(+) diff --git a/HD44780.cpp b/HD44780.cpp index 0af603e..249a293 100644 --- a/HD44780.cpp +++ b/HD44780.cpp @@ -730,6 +730,18 @@ void CHD44780::clearFusionInt() } } +void CHD44780::writeCWInt() +{ + ::lcdPosition(m_fd, m_cols - 5, m_rows - 1); + ::lcdPuts(m_fd, "CW TX"); +} + +void CHD44780::clearCWInt() +{ + ::lcdPosition(m_fd, m_cols - 5, m_rows - 1); + ::lcdPuts(m_fd, " Idle"); +} + void CHD44780::clockInt(unsigned int ms) { m_clockDisplayTimer.clock(ms); diff --git a/HD44780.h b/HD44780.h index 4748b79..c0ab802 100644 --- a/HD44780.h +++ b/HD44780.h @@ -110,6 +110,9 @@ protected: virtual void writeFusionInt(const char* source, const char* dest, const char* type, const char* origin); virtual void clearFusionInt(); + virtual void writeCWInt(); + virtual void clearCWInt(); + virtual void clockInt(unsigned int ms); private: