use 128*64

Dependents:   example

Fork of Adafruit_FeatherOLED by Greg Steiert

Files at this revision

API Documentation at this revision

Comitter:
JojoS
Date:
Tue Nov 11 22:02:52 2014 +0000
Parent:
14:edb3c36aa1a7
Child:
16:7fb1d4d3525d
Commit message:
copy in line 211 requires index-1 because x starts at offset 1 and not at 0.

Changed in this revision

Adafruit_SSD1306.cpp Show annotated file Show diff for this revision Revisions of this file
Adafruit_SSD1306.h Show annotated file Show diff for this revision Revisions of this file
--- a/Adafruit_SSD1306.cpp	Sat Oct 25 20:41:38 2014 +0000
+++ b/Adafruit_SSD1306.cpp	Tue Nov 11 22:02:52 2014 +0000
@@ -94,9 +94,9 @@
 
     command(SSD1306_DISPLAYALLON_RESUME);
 
-    command(SSD1306_NORMALDISPLAY);
+    //command(SSD1306_NORMALDISPLAY);
     
-    command(SSD1306_DISPLAYON);
+    //command(SSD1306_DISPLAYON);
 }
 
 // Set a single pixel
--- 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));
 		}
 	};