SSD1308 OLED on NUCLEO-L053R8
Dependencies: SSD1308_128x64_I2C mbed
Revision 0:7f6e71b14fd0, committed 2015-03-17
- Comitter:
- kcy
- Date:
- Tue Mar 17 03:35:46 2015 +0000
- Commit message:
- First version
Changed in this revision
diff -r 000000000000 -r 7f6e71b14fd0 SSD1308_128x64_I2C.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SSD1308_128x64_I2C.lib Tue Mar 17 03:35:46 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/wim/code/SSD1308_128x64_I2C/#df92b0c0cb92
diff -r 000000000000 -r 7f6e71b14fd0 main.cpp --- /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
diff -r 000000000000 -r 7f6e71b14fd0 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Mar 17 03:35:46 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7e07b6fb45cf \ No newline at end of file