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.
Fork of Adafruit_GFX by
Revision 15:77feec1c0684, committed 2014-11-11
- 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)); } };