Eser 1

Dependencies:   mbed

Revision:
0:db13d12d2b12
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Oct 03 18:42:13 2016 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+
+
+
+DigitalOut myled(LED1);
+DigitalOut myled2(D8);
+DigitalIn b1(PC_13); 
+
+int main() {
+    while (1){
+        if(b1==1){
+            myled=1;
+            wait(0.02);
+            myled=0; 
+            wait(0.02);}
+        else{
+            myled=1;
+            wait(0.04);
+            myled=0; 
+            wait(0.04);}
+    }
+}
\ No newline at end of file