Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: RPCInterface mbed-src
Revision 0:404d156c66c9, committed 2016-05-31
- Comitter:
- abuchan
- Date:
- Tue May 31 16:26:08 2016 +0000
- Commit message:
- Publishing for Biomimetics.
Changed in this revision
--- /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