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:a442f40dafd3, committed 2009-11-25
- Comitter:
- annodomini2
- Date:
- Wed Nov 25 23:14:17 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 |
diff -r 000000000000 -r a442f40dafd3 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Nov 25 23:14:17 2009 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+Timer timer;
+
+int main()
+{
+ myled = 1;
+ timer.start();
+
+ int start = timer.read_ms();
+
+ while(1)
+ {
+ if((timer.read_ms() - start) >= 200)
+ {
+ myled = !myled;
+ start = timer.read_ms();
+ }
+ }
+}
diff -r 000000000000 -r a442f40dafd3 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Nov 25 23:14:17 2009 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/32af5db564d4