Test Program for the MicroOLED (SFE_MicroOLED) library.

Dependencies:   SFE_MicroOLED mbed

Revision:
0:74dc16dd732a
diff -r 000000000000 -r 74dc16dd732a main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Mar 19 03:52:54 2015 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+#include "SFE_MicroOLED.h"
+
+DigitalOut myled(LED1);
+SPI my_spi(p5, p6, p7);
+MicroOLED my_oled(my_spi, p11, p10, p9);
+
+int main() {
+    my_oled.init(0, 8000000);
+    my_oled.clear(ALL);
+    my_oled.puts("Hello all!");
+    my_oled.circle(16, 31, 16);
+    my_oled.line(0, 9, 63, 47);
+    my_oled.rectFill(33, 32, 8, 8);
+    my_oled.display();
+    while(1) {
+        myled = 1;
+        wait(0.2);
+        myled = 0;
+        wait(0.2);
+    }
+}