summaryrefslogtreecommitdiff
path: root/libraries/MultiLCD/SSD1306.cpp
diff options
context:
space:
mode:
authorStanley Huang <stanleyhuangyc@gmail.com>2013-11-29 23:13:15 +1100
committerStanley Huang <stanleyhuangyc@gmail.com>2013-11-29 23:13:15 +1100
commit94ddea4cfac60df45f48db3b25b0d9c62c066d94 (patch)
tree32c26da9a1503451892d2e3216d2a6edf9552bd3 /libraries/MultiLCD/SSD1306.cpp
parenta9cac1d46f5399f163448d40ea5aa954efea9770 (diff)
download2021-arduino-obd-94ddea4cfac60df45f48db3b25b0d9c62c066d94.tar.gz
2021-arduino-obd-94ddea4cfac60df45f48db3b25b0d9c62c066d94.tar.bz2
2021-arduino-obd-94ddea4cfac60df45f48db3b25b0d9c62c066d94.zip
update MultiLCD library
Diffstat (limited to 'libraries/MultiLCD/SSD1306.cpp')
-rw-r--r--libraries/MultiLCD/SSD1306.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/libraries/MultiLCD/SSD1306.cpp b/libraries/MultiLCD/SSD1306.cpp
index 7f7b8e8..5fc1ba0 100644
--- a/libraries/MultiLCD/SSD1306.cpp
+++ b/libraries/MultiLCD/SSD1306.cpp
@@ -1,5 +1,5 @@
#include <avr/pgmspace.h>
-#include <util/delay.h>
+//#include <util/delay.h>
#include <stdlib.h>
#include <Wire.h>
#include "SSD1306.h"
@@ -238,8 +238,8 @@ void SSD1306::fill(unsigned char dat)
ssd1306_command(0x10);//set higher column address
ssd1306_command(0xB0);//set page address
- uint8_t twbrbackup = TWBR;
- TWBR = 18; // upgrade to 400KHz!
+ //uint8_t twbrbackup = TWBR;
+ //TWBR = 18; // upgrade to 400KHz!
for (byte i=0; i<(SSD1306_LCDHEIGHT/8); i++)
{
// send a bunch of data in one xmission
@@ -256,7 +256,7 @@ void SSD1306::fill(unsigned char dat)
Wire.endTransmission();
}
}
- TWBR = twbrbackup;
+ //TWBR = twbrbackup;
}
void SSD1306::draw8x8(byte* buffer, uint8_t x, uint8_t y)