SSD1308 OLED on NUCLEO-L053R8
Dependencies: SSD1308_128x64_I2C mbed
Diff: main.cpp
- Revision:
- 0:7f6e71b14fd0
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Mar 17 03:35:46 2015 +0000 @@ -0,0 +1,15 @@ +#include "mbed.h" +#include "SSD1308.h" + +I2C i2c(I2C_SDA, I2C_SCL); + +SSD1308 oled(i2c); + +int main() { + oled.initialize(); + oled.clearDisplay(); + oled.fillDisplay(); + oled.writeString(0, 0, "Hello"); + oled.writeString(1, 0, "Nucleo-L053R8"); + while(1); +} \ No newline at end of file