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 Neal Horman

Revision:
17:bbd6430a27ca
Parent:
15:77feec1c0684
--- a/Adafruit_SSD1306.h	Tue Nov 11 22:08:20 2014 +0000
+++ b/Adafruit_SSD1306.h	Mon Aug 15 18:38:35 2016 +0000
@@ -25,10 +25,15 @@
 
 #include "mbed.h"
 #include "Adafruit_GFX.h"
+#include <string>
 
 #include <vector>
 #include <algorithm>
 
+#ifndef pgm_read_byte
+ #define pgm_read_byte(addr) (*(const unsigned char *)(addr))
+#endif
+
 // A DigitalOut sub-class that provides a constructed default state
 class DigitalOut2 : public DigitalOut
 {
@@ -58,6 +63,9 @@
 	};
 
 	void begin(uint8_t switchvcc = SSD1306_SWITCHCAPVCC);
+	void print(string c);
+	void drawXBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
+      int16_t w, int16_t h, uint16_t color);
 	
 	// These must be implemented in the derived transport driver
 	virtual void command(uint8_t c) = 0;
@@ -72,6 +80,8 @@
 	void display();
 	/// Fill the buffer with the AdaFruit splash screen.
 	virtual void splash();
+	
+	
     
 protected:
 	virtual void sendDisplayBuffer() = 0;
@@ -195,6 +205,7 @@
 		buff[1] = c;
 		mi2c.write(mi2cAddress, buff, sizeof(buff));
 	};
+	
 
 protected:
 	virtual void sendDisplayBuffer()