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:4236501a059a, committed 2018-02-08
- Comitter:
- 4180_1
- Date:
- Thu Feb 08 14:58:45 2018 +0000
- Commit message:
- ver 1.0
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 |
diff -r 000000000000 -r 4236501a059a main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Feb 08 14:58:45 2018 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+//Communicate with Android using USB serial
+//See https://os.mbed.com/users/4180_1/notebook/using-mbed-with-an-android-phone-or-tablet/
+DigitalOut myled(LED1);
+Serial USB(USBTX,USBRX);
+
+int main() {
+ USB.baud(19200); //set baud for Andriod App default
+ wait(1.0);
+ USB.printf("\n\rHello from mbed\n\r");
+ USB.printf("Type characters, hit send, and mbed will echo them back\n\r");
+ myled = 1;
+ while(1) {
+ USB.putc(USB.getc());
+ }
+}
diff -r 000000000000 -r 4236501a059a mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Feb 08 14:58:45 2018 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7130f322cb7e \ No newline at end of file