summaryrefslogtreecommitdiff
path: root/obdlogger/MultiLCD.h
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2013-04-28 01:33:32 +0800
committerStanley Huang <stanleyhuangyc@gmail.com>2013-04-28 01:33:32 +0800
commit2e2defb19785dea4362b11f5b311e42605450fd0 (patch)
tree899a3dd1b188bf9fe167d6e25f2b5f9e2c34c1d7 /obdlogger/MultiLCD.h
parent57e9ae4ccce0a3e0e29a19a0f086c767a30f3e4e (diff)
download2021-arduino-obd-2e2defb19785dea4362b11f5b311e42605450fd0.tar.gz
2021-arduino-obd-2e2defb19785dea4362b11f5b311e42605450fd0.tar.bz2
2021-arduino-obd-2e2defb19785dea4362b11f5b311e42605450fd0.zip
update MultiLCD library
Diffstat (limited to 'obdlogger/MultiLCD.h')
-rw-r--r--obdlogger/MultiLCD.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/obdlogger/MultiLCD.h b/obdlogger/MultiLCD.h
index b8adfeb..5a8f7e3 100644
--- a/obdlogger/MultiLCD.h
+++ b/obdlogger/MultiLCD.h
@@ -9,6 +9,7 @@ public:
virtual void backlight(bool on) {}
virtual byte getLines() = 0;
virtual byte getCols() = 0;
+ virtual void changeLine() {}
};
class LCD_PCD8544 : public LCD_Common, public PCD8544
@@ -43,6 +44,11 @@ public:
m_column = column << 3;
m_line = line << 1;
}
+ void changeLine()
+ {
+ m_column = 0;
+ m_line += 2;
+ }
void write(char c);
void print(const char* s);
void printLarge(const char* s);