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:8364af11a956, committed 2014-07-23
- Comitter:
- hasimo
- Date:
- Wed Jul 23 10:32:15 2014 +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 8364af11a956 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Jul 23 10:32:15 2014 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+InterruptIn button(p5);
+DigitalOut led(LED1);
+DigitalOut flash(LED4);
+
+
+void flip(){
+ led = !led;
+}
+
+int main() {
+ button.mode(PullUp);
+ button.fall(&flip);
+
+ while(1) {
+ flash = !flash;
+ wait(0.25);
+ }
+}
diff -r 000000000000 -r 8364af11a956 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Jul 23 10:32:15 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/04dd9b1680ae \ No newline at end of file