1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mdidrich
Date:
Tue Sep 26 12:12:04 2017 +0000
Commit message:
Martni

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 b831ae8061c9 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Sep 26 12:12:04 2017 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+DigitalOut led1(LED1), led2(LED4);
+
+void blink5(int Tp, int Ta, int antall, DigitalOut &rLed);
+int main() {
+    blink5(500, 500, 4, led1);
+    blink5(250, 250, 10, led2);
+    return 0;
+}//main
+
+void blink5(int Tp, int Ta, int antall, DigitalOut &rLed){
+    
+        for (int n = 0; n < antall; n++){
+            rLed = 1;
+            wait_ms(Tp);
+            rLed = 0;
+            wait_ms(Ta);
+    }
+    }//blink5
diff -r 000000000000 -r b831ae8061c9 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Sep 26 12:12:04 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/675da3299148
\ No newline at end of file