Applied engineering Team / Mbed 2 deprecated Zadatak3_6

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
draganknezevic
Date:
Thu Dec 10 14:43:19 2015 +0000
Commit message:
Dragan Knezevic

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 c15e36525dd9 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Dec 10 14:43:19 2015 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+ 
+int main() {
+    DigitalOut Led1 (LED1);
+    DigitalIn sw(p5);
+    sw.mode(PullUp); 
+    int counter=0;
+    
+    while(1) 
+{
+     if (sw==1) 
+    {
+        counter++;
+    } 
+    if((counter%9)==0)
+    {
+        Led1 = 1;
+    }
+    
+}
+}
\ No newline at end of file
diff -r 000000000000 -r c15e36525dd9 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Dec 10 14:43:19 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/165afa46840b
\ No newline at end of file