program to blink two leds along with value of N

Fork of blink_LED by Anjali jangalagi

Revision:
0:d1d2410ad028
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/blink.cpp	Fri Nov 11 06:35:49 2016 +0000
@@ -0,0 +1,25 @@
+#include "Blinker.h"
+#include "mbed.h"
+ 
+Blinker::Blinker(PinName pin) : LED1(pin) 
+{
+    LED1 = 0;
+}
+ LED2(pin)
+ {
+    LED2 = 0; 
+    }
+void Blinker::Blink(int n) {
+    for(int i=0; i<n*2; i++) {
+        LED1=1;
+        wait(0.2);
+        LED1=0;
+        wait(0.2);
+        LED2=1;
+        wait(0.2);
+        LED2=0;
+        wait(0.2);
+        
+        
+    }
+}
\ No newline at end of file