Sverre Didrichsen / Mbed 2 deprecated oving5-1D

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mdidrich
Date:
Tue Sep 26 12:23:39 2017 +0000
Commit message:
1

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 0ab9e89718d7 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Sep 26 12:23:39 2017 +0000
@@ -0,0 +1,28 @@
+#include "mbed.h"
+
+DigitalOut myled(LED1);
+void blink3(float F, float d);
+
+int main()
+{
+int n = 20;
+    while(n > 0) {
+    blink3(2.0, 0.4); 
+    n--;
+    }
+    return 0;
+}
+
+//funksjoner
+void blink3(float F, float d){
+    float Tp = d/F;
+    float Ta = (1-d)/F;
+    myled = 1;
+    wait(Tp);
+    myled = 0;
+    wait(Ta);
+    }//blink3
+    
+    
+    
+    
diff -r 000000000000 -r 0ab9e89718d7 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Sep 26 12:23:39 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/675da3299148
\ No newline at end of file