diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-06-10 13:21:09 +0800 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-06-10 13:21:09 +0800 |
commit | 47c6ff979fea8051c02fb38fe99c0021880a4ed8 (patch) | |
tree | e8ff3fc5e616e4b0a26faba64c904d7d18c75037 /libraries/MultiLCD/LCD4Bit_mod.cpp | |
parent | f6082dee6e41054bec5b8d97e848517cbebbb3ad (diff) | |
download | 2021-arduino-obd-47c6ff979fea8051c02fb38fe99c0021880a4ed8.tar.gz 2021-arduino-obd-47c6ff979fea8051c02fb38fe99c0021880a4ed8.tar.bz2 2021-arduino-obd-47c6ff979fea8051c02fb38fe99c0021880a4ed8.zip |
update MultiLCD library
Diffstat (limited to 'libraries/MultiLCD/LCD4Bit_mod.cpp')
-rw-r--r-- | libraries/MultiLCD/LCD4Bit_mod.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/libraries/MultiLCD/LCD4Bit_mod.cpp b/libraries/MultiLCD/LCD4Bit_mod.cpp index c100c19..5072818 100644 --- a/libraries/MultiLCD/LCD4Bit_mod.cpp +++ b/libraries/MultiLCD/LCD4Bit_mod.cpp @@ -89,7 +89,7 @@ void LCD4Bit_mod::commandWrite(byte value) //print the given character at the current cursor position. overwrites, doesn't insert. -void LCD4Bit_mod::write(byte c) +size_t LCD4Bit_mod::write(uint8_t c) { //set the RS and RW pins to show we're writing data digitalWrite(RS, HIGH); @@ -97,18 +97,8 @@ void LCD4Bit_mod::write(byte c) //let pushByte worry about the intricacies of Enable, nibble order. pushByte(c); -} - -//print the given string to the LCD at the current cursor position. overwrites, doesn't insert. -//While I don't understand why this was named printIn (PRINT IN?) in the original LiquidCrystal library, I've preserved it here to maintain the interchangeability of the two libraries. -void LCD4Bit_mod::print(const char* msg) -{ - byte i; //fancy int. avoids compiler warning when comparing i with strlen()'s uint8_t - byte l = strlen(msg); - for (i=0; i < l; i++){ - if (msg[i] >= 20) write(msg[i]); - } + return 1; } |