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:d90530967590, committed 2014-03-10
- Comitter:
- tim010
- Date:
- Mon Mar 10 10:18:46 2014 +0000
- Commit message:
- LV2-GRUPA1-TIM010
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 Mon Mar 10 10:18:46 2014 +0000
@@ -0,0 +1,32 @@
+#include "mbed.h"
+#include "ctime"
+BusOut myled(dp23, dp24, dp25, dp26, dp27, dp5, dp6, dp28);
+DigitalIn t1(dp1), t2(dp2);
+DigitalOut enable(dp14);
+
+int main() {
+
+ enable = 0;
+ myled = 0;
+ int br = 0;
+
+ while(1) {
+ br = 0;
+ while(t1 == 1)
+ {
+ br++;
+ }
+ if(br > 1000)
+ myled = myled + 1;
+
+ br = 0;
+ while(t2 == 1)
+ {
+ br++;
+ }
+ if(br > 1000)
+ myled = myled - 1;
+
+
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 10 10:18:46 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/8e73be2a2ac1 \ No newline at end of file