Oppgave 5.1c

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Smashftw
Date:
Tue Sep 26 11:07:19 2017 +0000
Commit message:
oppgave51c

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 577d9598d207 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Sep 26 11:07:19 2017 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+int blink2;
+int main() 
+     {
+        int n = 30;
+        while(n>0) {
+        
+        blink2(0.133, 0.067);
+        n--;
+    }return 0;
+}
+    
+void blink2(float Tp, float Ta){
+    myled=1;
+    wait(Tp);
+    myled=0;
+    wait(Ta);
+    }
\ No newline at end of file
diff -r 000000000000 -r 577d9598d207 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Sep 26 11:07:19 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/675da3299148
\ No newline at end of file