Oppgave 5.1c original

Dependencies:   mbed

Fork of Oppgave51c by Sølibatgutt

Files at this revision

API Documentation at this revision

Comitter:
Smashftw
Date:
Tue Oct 03 10:46:10 2017 +0000
Parent:
0:577d9598d207
Commit message:
Oppgave51c

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:07:19 2017 +0000
+++ b/main.cpp	Tue Oct 03 10:46:10 2017 +0000
@@ -1,20 +1,23 @@
 #include "mbed.h"
 
 DigitalOut myled(LED1);
-int blink2;
-int main() 
-     {
-        int n = 30;
-        while(n>0) {
-        
+void blink2 (float Tp, float Ta);
+
+int main()
+{
+    int n = 75;
+    while(n>0) {
+
         blink2(0.133, 0.067);
         n--;
-    }return 0;
+    }
+    return 0;
 }
-    
-void blink2(float Tp, float Ta){
+
+void blink2(float Tp, float Ta)
+{
     myled=1;
     wait(Tp);
     myled=0;
     wait(Ta);
-    }
\ No newline at end of file
+}
\ No newline at end of file