3.2.3

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
olemh88
Date:
Tue Sep 12 11:39:19 2017 +0000
Commit message:
3.2.3

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