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: mbed
Revision 0:4a2f7ded5c1d, committed 2018-06-17
- Comitter:
- rakeshravula
- Date:
- Sun Jun 17 08:22:58 2018 +0000
- Child:
- 1:76207e762bb4
- Commit message:
- for printing to UART
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 Sun Jun 17 08:22:58 2018 +0000
@@ -0,0 +1,16 @@
+#include "mbed.h"
+
+Serial pc(USBTX, USBRX);
+
+DigitalOut led1(LED1);
+
+int main() {
+ while (true) {
+ led1 = !led1;
+
+ // Print something over the serial connection
+ pc.printf("Blink! LED is now %d\r\n", led1.read());
+
+ wait(0.5);
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Jun 17 08:22:58 2018 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/5aab5a7997ee \ No newline at end of file