diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-04-02 16:00:42 +0800 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2013-04-02 16:00:42 +0800 |
commit | 33c41f4a95707da1c6e11932c33a1792902fcec4 (patch) | |
tree | 808004d187c5d12aa33c7bdd156de9cf3b7685b6 /obdlogger/MultiLCD.cpp | |
parent | f2a3687634dfcf1ad7b8ea5ae241cefffbb37614 (diff) | |
download | 2021-arduino-obd-33c41f4a95707da1c6e11932c33a1792902fcec4.tar.gz 2021-arduino-obd-33c41f4a95707da1c6e11932c33a1792902fcec4.tar.bz2 2021-arduino-obd-33c41f4a95707da1c6e11932c33a1792902fcec4.zip |
add write() for OLED
Diffstat (limited to 'obdlogger/MultiLCD.cpp')
-rw-r--r-- | obdlogger/MultiLCD.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/obdlogger/MultiLCD.cpp b/obdlogger/MultiLCD.cpp index 1442ebd..06500fa 100644 --- a/obdlogger/MultiLCD.cpp +++ b/obdlogger/MultiLCD.cpp @@ -114,6 +114,12 @@ const PROGMEM unsigned char font5x8[][5] = { { 0x00, 0x00, 0x00, 0x00, 0x00 } // 7f }; +void LCD_OLED::write(char c) +{ + char s[2] = {c}; + ScI2cMxDisplay8x16Str(OLED_ADDRESS, m_line, m_column, s); +} + void LCD_OLED::print(const char* s) { ScI2cMxDisplay8x16Str(OLED_ADDRESS, m_line, m_column, s); |