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:4f1a7b411fbb, committed 2016-09-29
- Comitter:
- dq14
- Date:
- Thu Sep 29 12:49:37 2016 +0000
- Commit message:
- l
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 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Sep 29 12:49:37 2016 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+DigitalOut myled2(PA_6);
+DigitalIn mybutton(USER_BUTTON);
+DigitalIn mybutton2(PA_7);
+
+
+
+int main()
+{
+ printf("Velkomen/r/n");
+ mybutton2.mode(PullDown);
+
+ while(1)
+ {
+ if(mybutton2 == 1) //Chk if button is pushed
+ { myled2 = 1; // LED on PA_6 is ON
+ }
+ else
+ { myled2 = 0; //LED on PA_6 if OFF
+
+ }
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Sep 29 12:49:37 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/2241e3a39974 \ No newline at end of file