Oppgave 5.1 d original

Dependencies:   mbed

Fork of Oppgav51d by Sølibatgutt

Files at this revision

API Documentation at this revision

Comitter:
Smashftw
Date:
Tue Oct 03 10:50:11 2017 +0000
Parent:
0:b34cb9ed7646
Commit message:
Oppgave 51d

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Sep 26 11:06:08 2017 +0000
+++ b/main.cpp	Tue Oct 03 10:50:11 2017 +0000
@@ -1,19 +1,22 @@
 #include "mbed.h"
 
 DigitalOut myled(LED1);
-int blink3;
-int main() 
-     {
-        int n = 30;
-        while(n>0) {
-        blink3(5, 0.67);
+void blink3(float F, float d);
+
+int main()
+{
+    int n = 20;
+    while(n>0) {
+        blink3(2.0, 0.4);
         n--;
-    }return 0;
+    }
+    return 0;
 }
 
-void blink3(float F, fload d){
+void blink3(float F, float d)
+{
     myled=1;
     wait(d/F);
     myled=0;
     wait((1-d)/F);
-    }
\ No newline at end of file
+}
\ No newline at end of file