Nenad Milosevic / Mbed 2 deprecated MicroOLED_Test Featured

Dependencies:   SFE_MicroOLED mbed

Files at this revision

API Documentation at this revision

Comitter:
synvox
Date:
Thu Mar 19 03:52:54 2015 +0000
Commit message:
Test Program for MicroOLED library

Changed in this revision

SFE_MicroOLED.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SFE_MicroOLED.lib	Thu Mar 19 03:52:54 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/synvox/code/SFE_MicroOLED/#b7fc78d2b795
--- /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);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Mar 19 03:52:54 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0
\ No newline at end of file