dfas

Dependencies:   mbed

Revision:
0:b80a844ec395
diff -r 000000000000 -r b80a844ec395 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 14 10:01:06 2016 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+
+Serial pc(SERIAL_TX, SERIAL_RX);
+DigitalOut myled ( LED1 );
+
+
+
+int main () {
+    int i = 1;
+    pc. baud (9600) ;
+    pc. printf (" Program zapnut !\n");
+    while (1) {
+        pc. printf (" Zadejte pocet blikani \n");
+        pc. scanf ("%d" ,&i);
+        if(i > 0){
+            pc. printf (" Blikani %dx\n",i);
+        while (i --){
+            myled = 1;
+            wait (0.5) ;
+            myled = 0;
+            wait (0.5) ;
+  }
+}   
+}
+}
\ No newline at end of file