Forked from Neal Horman: Adafruit_GFX, a derived version of the BSD licensed Adafrut GFX library for the SSD1306 controller for an OLED 128x32 or 128x64 display using SPI or I2C. Now it is adopted also for the SH1106 I2C 128x64 display as well...

Dependents:   Lab06_oled_i2c Lab06_BME280_oled Lab06_oled_clock I2C_SSD1306andSH1106_nucleo_F446RE

Revision:
15:77feec1c0684
Parent:
12:7964c2cfdebc
Child:
17:00a1379bd18a
--- a/Adafruit_SSD1306.h	Sat Oct 25 20:41:38 2014 +0000
+++ b/Adafruit_SSD1306.h	Tue Nov 11 22:02:52 2014 +0000
@@ -208,7 +208,7 @@
 
 			// TODO - this will segfault if buffer.size() % 16 != 0
 			for(x=1; x<sizeof(buff); x++) 
-				buff[x] = buffer[i+x];
+				buff[x] = buffer[i+x-1];
 			mi2c.write(mi2cAddress, buff, sizeof(buff));
 		}
 	};