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:37f13e6a4426, committed 2015-05-08
- Comitter:
- roby13
- Date:
- Fri May 08 17:36:42 2015 +0000
- Commit message:
- a
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 37f13e6a4426 main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri May 08 17:36:42 2015 +0000
@@ -0,0 +1,31 @@
+#include "mbed.h"
+
+DigitalOut redled(p5);
+DigitalOut greenled(p6);
+DigitalIn sw1(p7);
+
+int a = 0;
+
+
+int main()
+{
+ sw1.mode(PullUp);
+ while(a<9) {
+ if (sw1==1) {
+ a++;
+ while (sw1==1)
+ {}
+ }
+ wait(0.2);
+ if (sw1==0) {
+ while (
+ sw1==0)
+ {
+ }
+ }
+
+ }
+
+ redled = 1;
+ greenled = 1;
+}
diff -r 000000000000 -r 37f13e6a4426 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri May 08 17:36:42 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8ab26030e058 \ No newline at end of file