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.
Diff: test.cpp
- Revision:
- 1:0dea7cc36043
- Parent:
- 0:e51b311658fd
diff -r e51b311658fd -r 0dea7cc36043 test.cpp
--- a/test.cpp	Mon Sep 21 15:12:00 2020 +0000
+++ b/test.cpp	Sun Sep 27 12:43:26 2020 +0000
@@ -1,6 +1,12 @@
 #include "mbed.h"
+DigitalOut red_led(LED1);  // red_led is associated with the RED LED
 int main(void)
 {
-    printf("Hello World\n");
-    getchar();    
+   for(;;)
+   {
+      red_led=0;   // turn on red led
+      wait_ms(500); // wait .5 seconds
+      red_led=1;   // turn off red led
+       wait_ms(500); // wait .5 seconds
+   }
 }
\ No newline at end of file