I have edited the the ssd1306 to add functionality to print through simple function

Dependencies:   mbed Adafruit_GFX

Revision:
14:2fc2f14f5f86
Parent:
13:52e9c29e2f88
--- a/main.cpp	Wed Apr 19 04:07:40 2017 +0000
+++ b/main.cpp	Wed Sep 25 15:57:32 2019 +0000
@@ -1,9 +1,9 @@
 #include "mbed.h"
 #include "Adafruit_SSD1306.h"
 
-DigitalOut myled_R(LED_RED);
+DigitalOut myled_R(LED1);
 
-I2C i2c(PA_10,PA_9);
+I2C i2c(I2C_SDA,I2C_SCL);
 
 Adafruit_SSD1306_I2c myOled(i2c,NC,0x78,64,128);
 
@@ -22,6 +22,6 @@
         myOled.printf("%u\r",x);
         myOled.display();
         x = x + 1;                  
-        wait(1.0);
+        wait(0.1);
     }
 }