diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-07-28 11:23:06 +0800 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-07-28 11:23:06 +0800 |
commit | 1e56a244b3e0bdb434ac507a49b359767886be81 (patch) | |
tree | 8f37139eb22a6e51cb016b0dd01edbfaf1205e6e /libraries/MultiLCD | |
parent | 9dd48e5285ed65cae13ca8e9157e0503a8d58e88 (diff) | |
download | 2021-arduino-obd-1e56a244b3e0bdb434ac507a49b359767886be81.tar.gz 2021-arduino-obd-1e56a244b3e0bdb434ac507a49b359767886be81.tar.bz2 2021-arduino-obd-1e56a244b3e0bdb434ac507a49b359767886be81.zip |
update MultiLCD library
Diffstat (limited to 'libraries/MultiLCD')
-rw-r--r-- | libraries/MultiLCD/MultiLCD.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/libraries/MultiLCD/MultiLCD.h b/libraries/MultiLCD/MultiLCD.h index 648321c..16f11e1 100644 --- a/libraries/MultiLCD/MultiLCD.h +++ b/libraries/MultiLCD/MultiLCD.h @@ -29,10 +29,7 @@ public: void setFont(FONT_SIZE size) { m_font = size; } void setFlags(byte flags) { m_flags = flags; } virtual void backlight(bool on) {} - virtual byte getLines() = 0; - virtual byte getCols() = 0; - virtual void clearLine(byte line) {} - void draw(const PROGMEM byte* buffer, byte x, byte y, byte width, byte height) {} + virtual void draw(const PROGMEM byte* buffer, byte x, byte y, byte width, byte height) {} void printInt(uint16_t value, char padding = -1); void printLong(unsigned long value, char padding = -1); protected: @@ -41,6 +38,18 @@ protected: byte m_flags; }; +class LCD_Null : public LCD_Common, public Print +{ +public: + byte getLines() { return 0; } + byte getCols() { return 0; } + void clearLine(byte line) {} + void clear() {} + void begin() {} + void setCursor(byte column, byte line) {} + size_t write(uint8_t c) { return 0; } +}; + class LCD_PCD8544 : public LCD_Common, public PCD8544 { public: |