Oled display lib on I2C com.

Dependencies:   SSD1308_128x64_I2C

Dependents:   weather_station_proj weather_station_project weather_station_proj_v1_2

Fork of SSD1306_128x64_I2C by Dai Yokota

Files at this revision

API Documentation at this revision

Comitter:
daniel_davvid
Date:
Sun Jul 01 11:59:16 2018 +0000
Parent:
2:46dcbaa430f4
Commit message:
inverted screen

Changed in this revision

SSD1306.h Show annotated file Show diff for this revision Revisions of this file
SSD1308_128x64_I2C.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 46dcbaa430f4 -r 05989d252f62 SSD1306.h
--- a/SSD1306.h	Sat Aug 06 08:20:09 2016 +0000
+++ b/SSD1306.h	Sun Jul 01 11:59:16 2018 +0000
@@ -5,12 +5,12 @@
 
 class SSD1306 : public SSD1308 {
 public:
-    SSD1306(I2C &i2c, uint8_t address) : SSD1308(i2c,address) {
+    SSD1306(I2C *i2c, uint8_t address) : SSD1308(i2c,address) {
         char databytes[4] = {COMMAND_MODE, 0x8d, //charge pump enable
                              COMMAND_MODE, 0x14  //charge pump ON
                             };
-        i2c.write(address, databytes, 4);
-        setDisplayFlip(false, false);
+        i2c->write(address, databytes, 4);
+        setDisplayFlip(true, true);
     }
 };
 #endif
\ No newline at end of file
diff -r 46dcbaa430f4 -r 05989d252f62 SSD1308_128x64_I2C.lib
--- a/SSD1308_128x64_I2C.lib	Sat Aug 06 08:20:09 2016 +0000
+++ b/SSD1308_128x64_I2C.lib	Sun Jul 01 11:59:16 2018 +0000
@@ -1,1 +1,1 @@
-http://mbed.org/users/wim/code/SSD1308_128x64_I2C/#df92b0c0cb92
+http://mbed.org/users/wim/code/SSD1308_128x64_I2C/#e564cde8e03e