dfas

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Kroniiks
Date:
Thu Apr 14 10:01:06 2016 +0000
Commit message:
Nate mrdky

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 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
diff -r 000000000000 -r b80a844ec395 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 14 10:01:06 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/082adc85693f
\ No newline at end of file