Austin Buchan / mbed_basic_rpc

Dependencies:   RPCInterface mbed-src

Files at this revision

API Documentation at this revision

Comitter:
abuchan
Date:
Tue May 31 16:26:08 2016 +0000
Commit message:
Publishing for Biomimetics.

Changed in this revision

RPCInterface.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-src.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RPCInterface.lib	Tue May 31 16:26:08 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/abuchan/code/RPCInterface/#1b85f3d0fae9
--- /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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-src.lib	Tue May 31 16:26:08 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed-src/#a11c0372f0ba