summaryrefslogtreecommitdiff
path: root/libraries/MultiLCD/MultiLCD.h
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2014-01-10 21:20:08 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2014-01-10 21:20:08 +1100
commit260f25bb7daf61644bd60af360c043eebd25da77 (patch)
tree10181e7335fdb576b1430bec52a02925e797855c /libraries/MultiLCD/MultiLCD.h
parente1887a123deb2e166dd1bb0dd1d76f6fd665f1a8 (diff)
download2021-arduino-obd-260f25bb7daf61644bd60af360c043eebd25da77.tar.gz
2021-arduino-obd-260f25bb7daf61644bd60af360c043eebd25da77.tar.bz2
2021-arduino-obd-260f25bb7daf61644bd60af360c043eebd25da77.zip
Update MultiLCD
Diffstat (limited to 'libraries/MultiLCD/MultiLCD.h')
-rw-r--r--libraries/MultiLCD/MultiLCD.h21
1 files changed, 4 insertions, 17 deletions
diff --git a/libraries/MultiLCD/MultiLCD.h b/libraries/MultiLCD/MultiLCD.h
index 6cba291..a5c4085 100644
--- a/libraries/MultiLCD/MultiLCD.h
+++ b/libraries/MultiLCD/MultiLCD.h
@@ -5,6 +5,10 @@
* All rights reserved.
*************************************************************************/
+#if !defined(__AVR_ATmega2560__) && !defined(__AVR_ATmega1280__) && !defined(__AVR_ATmega644P__) && !defined(__SAM3X8E__)
+//#define MEMORY_SAVING
+#endif
+
typedef enum {
FONT_SIZE_SMALL = 0,
FONT_SIZE_MEDIUM,
@@ -80,23 +84,6 @@ private:
void writeDigit(byte n);
};
-#include "LCD4Bit_mod.h"
-class LCD_1602 : public LCD_Common, public LCD4Bit_mod
-{
-public:
- byte getLines() { return 2; }
- byte getCols() { return 16; }
- void writeDigit(byte n)
- {
- write(n >= 0 && n <= 9 ? '0' + n : ' ');
- }
- void clearLine(byte line)
- {
- setCursor(0, line);
- for (byte i = 16; i > 0; i--) write(' ');
- }
-};
-
#include "SSD1306.h"
class LCD_SSD1306 : public LCD_Common, public SSD1306, public Print