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:0709567c9017, committed 2015-05-08
- Comitter:
- mpozojevi
- Date:
- Fri May 08 16:52:26 2015 +0000
- Commit message:
- Matija Pozojevi?
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 Fri May 08 16:52:26 2015 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+DigitalIn sw1(p7);
+
+int i = 0;
+
+
+int main()
+{
+ sw1.mode(PullUp);
+ while(i<9) {
+ if (sw1==1) {
+ i++;
+ while (sw1==1)
+ {}
+ }
+ wait(0.2); /// zbog istitravanja prekidaća
+ if (sw1==0) {
+ while (sw1==0)
+ {}
+ }
+
+ }
+ myled = 1;
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri May 08 16:52:26 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8ab26030e058 \ No newline at end of file