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: main.cpp
- Revision:
- 0:e542aefb5812
diff -r 000000000000 -r e542aefb5812 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri Aug 22 19:21:50 2014 +0000
@@ -0,0 +1,39 @@
+#include "mbed.h"
+DigitalOut led(D8);
+
+
+
+int main() {
+ while(1){
+ int i=0;
+ int t=0;
+ int r=0;
+
+ while(i<3) {
+ led = 1;
+ wait(0.1);
+ led = 0;
+ wait(0.05);
+ i++;
+ }
+ wait(0.1);
+
+ while(t<2) {
+ led = 1;
+ wait(0.3);
+ led = 0;
+ wait(0.05);
+ t++;
+ }
+ wait(0.1);
+
+ while(r<3) {
+ led = 1;
+ wait(0.1);
+ led = 0;
+ wait(0.05);
+ r++;
+ }
+ wait(1.0);
+ }
+}
\ No newline at end of file