1.3''OLED
Dependencies: mbed QEI OLED_SSD1306_SH1106 I2C_SSD1306_nucleo_l432KC
main.cpp
- Committer:
- jcm931213
- Date:
- 2017-04-19
- Revision:
- 13:52e9c29e2f88
- Parent:
- 12:f7375e185594
- Child:
- 14:d7bc532b2133
File content as of revision 13:52e9c29e2f88:
#include "mbed.h" #include "Adafruit_SSD1306.h" DigitalOut myled_R(LED_RED); I2C i2c(PA_10,PA_9); Adafruit_SSD1306_I2c myOled(i2c,NC,0x78,64,128); int main() { uint16_t x=0; myOled.begin(); myOled.printf("%ux%u \nHellow World\r\n", myOled.width(), myOled.height()); myOled.display(); while(1) { myled_R = !myled_R; myOled.printf("%u\r",x); myOled.display(); x = x + 1; wait(1.0); } }