diff options
author | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-02-24 01:47:57 +0800 |
---|---|---|
committer | Stanley Huang <stanleyhuangyc@gmail.com> | 2014-02-24 01:47:57 +0800 |
commit | fe25cca198cc468ae12d9cbf320c0d273c630016 (patch) | |
tree | f5acba330779777d973ddc29c52256b48e26e36d /obdlogger/MicroLCD.cpp | |
parent | 91335d13a15c13cbb1fad11b35e89d14ebd8e903 (diff) | |
download | 2021-arduino-obd-fe25cca198cc468ae12d9cbf320c0d273c630016.tar.gz 2021-arduino-obd-fe25cca198cc468ae12d9cbf320c0d273c630016.tar.bz2 2021-arduino-obd-fe25cca198cc468ae12d9cbf320c0d273c630016.zip |
Update OBD logger
Diffstat (limited to 'obdlogger/MicroLCD.cpp')
-rw-r--r-- | obdlogger/MicroLCD.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/obdlogger/MicroLCD.cpp b/obdlogger/MicroLCD.cpp index 6892099..9f3764e 100644 --- a/obdlogger/MicroLCD.cpp +++ b/obdlogger/MicroLCD.cpp @@ -292,6 +292,8 @@ void LCD_SSD1306::setCursor(byte column, byte line) size_t LCD_SSD1306::write(uint8_t c) { + uint8_t twbrbackup = TWBR; + TWBR = 18; // upgrade to 400KHz! if (c == '\n') { setCursor(0, m_row + ((m_font == FONT_SIZE_SMALL) ? 1 : 2)); return 1; @@ -383,6 +385,7 @@ size_t LCD_SSD1306::write(uint8_t c) } } #endif + TWBR = twbrbackup; return 1; } |