Publishing for Biomimetics.

Dependencies:   RPCInterface mbed-src

Revision:
0:404d156c66c9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue May 31 16:26:08 2016 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+#include "SerialRPCInterface.h"
+
+SerialRPCInterface RPC(USBTX, USBRX, 115200);
+DigitalOut leds[] = { (LED1), (LED2), (LED3), (LED4) };
+
+int main(void) {
+    int count = 0;
+    int i;
+    while(true) {
+        if (++count == 4)
+            count = 0;
+        for (i=0; i<4; i++) {
+            leds[i] = (count == i) ? 1 : 0;
+        }
+        wait(0.25);
+    }
+}
\ No newline at end of file