![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Write the OLED(using I2C) l432KCc PIN sda scl reset
Dependencies: Adafruit_GFX mbed
Fork of I2C_SSD1306_Helloworld_WIZwiki-W7500 by
Diff: main.cpp
- Revision:
- 8:e61e86355653
- Parent:
- 7:4ab5e8203b1d
- Child:
- 9:a6021ca48d2e
--- a/main.cpp Mon Jul 13 07:23:06 2015 +0000 +++ b/main.cpp Fri Jul 24 01:20:00 2015 +0000 @@ -1,7 +1,8 @@ #include "mbed.h" #include "Adafruit_SSD1306.h" - -DigitalOut myled(LED1); + +DigitalOut shield_led_off(D10); +DigitalOut myled_R(LED1); // an SPI sub-class that provides a constructed default @@ -21,6 +22,8 @@ int main() { uint16_t x=0; + + shield_led_off = 0; // turn off Green LED on shield gOled.begin(); gOled.printf("%ux%u Hellow World\r\n", gOled.width(), gOled.height()); @@ -29,7 +32,7 @@ while(1) { - myled = !myled; + myled_R = !myled_R; gOled.printf("%u\r",x); gOled.display(); x = x + 1;