Get started with Grove - 4 Digit Display

Dependencies:   DigitDisplay mbed

Files at this revision

API Documentation at this revision

Comitter:
yihui
Date:
Mon Apr 28 00:59:56 2014 +0000
Commit message:
initial

Changed in this revision

DigitDisplay.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/DigitDisplay.lib	Mon Apr 28 00:59:56 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/seeed/code/DigitDisplay/#d3173c8bfd48
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Apr 28 00:59:56 2014 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "DigitDisplay.h"
+
+DigitDisplay display(P1_14, P1_13); // 4-Digit Display connected to UART Grove connector
+DigitalOut   led(LED1);
+
+int main() {
+    int count = 0;
+    while(1) {
+        display = count;
+        count++;
+        led = !led;
+        wait(1);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Apr 28 00:59:56 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e
\ No newline at end of file