summaryrefslogtreecommitdiff
path: root/libraries/MultiLCD
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2014-11-15 00:00:56 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2014-11-15 00:00:56 +1100
commit21a5139ff6a99a0d4e624168a0e3196396003d88 (patch)
tree1d28c519fb1d4afa3cbe2692465506a09a432770 /libraries/MultiLCD
parentc47489e9f59b92829bf1ec43054e78765615d2aa (diff)
download2021-arduino-obd-21a5139ff6a99a0d4e624168a0e3196396003d88.tar.gz
2021-arduino-obd-21a5139ff6a99a0d4e624168a0e3196396003d88.tar.bz2
2021-arduino-obd-21a5139ff6a99a0d4e624168a0e3196396003d88.zip
Add printSpace()
Diffstat (limited to 'libraries/MultiLCD')
-rw-r--r--libraries/MultiLCD/MultiLCD.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/libraries/MultiLCD/MultiLCD.h b/libraries/MultiLCD/MultiLCD.h
index 98b11e8..03737e6 100644
--- a/libraries/MultiLCD/MultiLCD.h
+++ b/libraries/MultiLCD/MultiLCD.h
@@ -55,26 +55,25 @@ public:
virtual void draw(const PROGMEM byte* buffer, uint16_t width, uint16_t height) {}
virtual void draw(const PROGMEM byte* buffer, uint16_t width, uint16_t height, byte scaleX, byte scaleY = 0) {}
virtual void draw4bpp(const PROGMEM byte* buffer, uint16_t width, uint16_t height) {}
+ virtual size_t write(uint8_t c) { return 0; }
+ virtual byte getLines() { return 0; }
+ virtual byte getCols() { return 0; }
+ virtual void clearLine(byte line) {}
+ virtual void clear() {}
+ virtual void begin() {}
+ virtual void setCursor(byte column, byte line) {}
void printInt(uint16_t value, int8_t padding = -1);
void printLong(uint32_t value, int8_t padding = -1);
+ void printSpace(byte n)
+ {
+ for (byte m = 0; m < n; m++) write(' ');
+ }
protected:
virtual void writeDigit(byte n) {}
byte m_font;
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; }
-};
-
#define TFT_LINE_HEIGHT 8
class LCD_ILI9325D : public LCD_Common, public Print