3.2.2

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
olemh88
Date:
Tue Sep 12 11:34:24 2017 +0000
Commit message:
3.2.2

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 8ec06ed0e9b0 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Sep 12 11:34:24 2017 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+Serial pc(USBTX, USBRX);
+int x = 0;
+int pulser;
+int main()
+{
+    while(1) {
+        pc.printf("Skriv inn antall pulser: ");
+        pc.scanf("%d", &pulser);
+        for(x = 0; x < pulser; x++) {
+            myled = 1;
+            wait_ms(500);
+            myled = 0;
+            wait_ms(500);
+
+        }
+    }
+}
diff -r 000000000000 -r 8ec06ed0e9b0 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Sep 12 11:34:24 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a330f0fddbec
\ No newline at end of file