SSD1308 128x64 OLED Driver with I2C interface

Dependents:   sense xadow_m0_ada_gps xadow_m0_SD_Hello sense-DHT11 ... more

See http://mbed.org/users/wim/notebook/oled-display-with-ssd1308-driver/#c6729

Revision:
5:e564cde8e03e
Parent:
4:df92b0c0cb92
--- a/SSD1308.h	Thu Jan 01 17:53:40 2015 +0000
+++ b/SSD1308.h	Mon Dec 18 18:46:05 2017 +0000
@@ -14,12 +14,13 @@
 //   2012-06-19 - Ported to mbed and optimised (WH)
 //   2013-07-12 - Minor comment fix and placeholder for SSD1306 (WH)
 //   2015-01-01 - Switch for optimised I2C calls to test on F401 (WH)
+//   2017-12-18 - Fixed non-copyable issue (Thx kenjiArai)
 //             
 /* 
 ================================================================================
 I2Cdev device library code is placed under the MIT license
 Copyright (c) 2011 Andrew Schamp
-Copyright (c) 2012,2013 WH (mbed port)
+Copyright (c) 2012,2013,2017 WH (mbed port)
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
@@ -192,7 +193,7 @@
  * Serial pc(USBTX, USBRX); // tx, rx
  *
  * // Instantiate OLED
- * SSD1308 oled = SSD1308(i2c, SSD1308_SA0);
+ * SSD1308 oled = SSD1308(&i2c, SSD1308_SA0);
  * 
  * int main() {
  *   pc.printf("OLED test start\r");  
@@ -224,7 +225,7 @@
   *@param I2C &i2c reference to i2c,
   *@param uint8_t deviceAddress slaveaddress (8bit to use for the controller (0x78 by default, assumes D/C# (pin 13) grounded)
  */    
-    SSD1308(I2C &i2c, uint8_t address = SSD1308_DEF_SA);
+    SSD1308(I2C *i2c, uint8_t address = SSD1308_DEF_SA);
 
 // High Level methods
 
@@ -533,7 +534,7 @@
  */   
     void _init();
 
-    I2C _i2c;              // I2C bus reference
+    I2C *_i2c;             // I2C bus reference
     uint8_t _readOpcode;   // contains the I2C address of the device
     uint8_t _writeOpcode;  // contains the I2C address of the device