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.

Dependents:   Oled

Fork of Adafruit_GFX by Neal Horman

Files at this revision

API Documentation at this revision

Comitter:
Jorge990715
Date:
Tue May 01 19:15:03 2018 +0000
Parent:
16:7fb1d4d3525d
Commit message:
Oled;

Changed in this revision

Adafruit_SSD1306.h Show annotated file Show diff for this revision Revisions of this file
diff -r 7fb1d4d3525d -r dc8a9c6d0a42 Adafruit_SSD1306.h
--- a/Adafruit_SSD1306.h	Tue Nov 11 22:08:20 2014 +0000
+++ b/Adafruit_SSD1306.h	Tue May 01 19:15:03 2018 +0000
@@ -50,7 +50,7 @@
 class Adafruit_SSD1306 : public Adafruit_GFX
 {
 public:
-	Adafruit_SSD1306(PinName RST, uint8_t rawHeight = 32, uint8_t rawWidth = 128)
+	Adafruit_SSD1306(PinName RST, uint8_t rawHeight = 64, uint8_t rawWidth = 128)
 		: Adafruit_GFX(rawWidth,rawHeight)
 		, rst(RST,false)
 	{
@@ -139,7 +139,7 @@
 		for(uint16_t i=0, q=buffer.size(); i<q; i++)
 			mspi.write(buffer[i]);
 
-		if(height() == 32)
+		if(height() == 64)
 		{
 			for(uint16_t i=0, q=buffer.size(); i<q; i++)
 				mspi.write(0);