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.
Revision 0:3ce7085022d1, committed 2009-11-26
- Comitter:
- chris
- Date:
- Thu Nov 26 10:14:48 2009 +0000
- Commit message:
Changed in this revision
| 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/main.cpp Thu Nov 26 10:14:48 2009 +0000
@@ -0,0 +1,27 @@
+#include "mbed.h"
+
+DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+
+Serial pc (USBTX,USBRX);
+Serial target (p28,p27);
+
+int main() {
+
+ pc.baud(115200);
+ target.baud(115200);
+
+ while (1) {
+
+ if (pc.readable()) {
+ target.putc(pc.getc());
+ led1 = !led1;
+ }
+
+ if (target.readable()) {
+ pc.putc(target.getc());
+ led2 = !led2;
+ }
+ }
+}
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Nov 26 10:14:48 2009 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/32af5db564d4