From 90772a2a9b7b9a56a696e581cc7c7e08b0a08bb9 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sat, 21 May 2016 12:28:09 +0100 Subject: [PATCH] Add optional clocking for the displays. --- Display.cpp | 6 ++++++ Display.h | 2 ++ HD44780.cpp | 4 ++++ HD44780.h | 2 ++ 4 files changed, 14 insertions(+) diff --git a/Display.cpp b/Display.cpp index ec525ea..5732169 100644 --- a/Display.cpp +++ b/Display.cpp @@ -189,4 +189,10 @@ void CDisplay::clock(unsigned int ms) m_timer2.stop(); } } + + clockInt(ms); +} + +void CDisplay::clockInt(unsigned int ms) +{ } diff --git a/Display.h b/Display.h index f6c9274..15f4faa 100644 --- a/Display.h +++ b/Display.h @@ -62,6 +62,8 @@ protected: virtual void writeFusionInt(const char* source, const char* dest, const char* type, const char* origin) = 0; virtual void clearFusionInt() = 0; + virtual void clockInt(unsigned int ms); + private: CTimer m_timer1; CTimer m_timer2; diff --git a/HD44780.cpp b/HD44780.cpp index 383d8a8..99b23cd 100644 --- a/HD44780.cpp +++ b/HD44780.cpp @@ -677,6 +677,10 @@ void CHD44780::clearFusionInt() } } +void CHD44780::clockInt(unsigned int ms) +{ +} + void CHD44780::close() { } diff --git a/HD44780.h b/HD44780.h index e37ee97..28400b6 100644 --- a/HD44780.h +++ b/HD44780.h @@ -73,6 +73,8 @@ protected: virtual void writeFusionInt(const char* source, const char* dest, const char* type, const char* origin); virtual void clearFusionInt(); + virtual void clockInt(unsigned int ms); + private: unsigned int m_rows; unsigned int m_cols;