clesta fonseca / Mbed 2 deprecated es_029

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
cless
Date:
Wed Nov 25 15:28:38 2015 +0000
Commit message:
hello!

Changed in this revision

lib.c Show annotated file Show diff for this revision Revisions of this file
lib.h 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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lib.c	Wed Nov 25 15:28:38 2015 +0000
@@ -0,0 +1,12 @@
+#include "mbed.h"
+ 
+LEDFLASH::LEDFLASH(PinName pin) : number(pin) {
+   number = 0;
+}    
+ 
+void LEDFLASH::out(int n)  {
+    for(int i=0; i<n*2; i++) {
+        number = !number;
+        wait(0.2);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lib.h	Wed Nov 25 15:28:38 2015 +0000
@@ -0,0 +1,19 @@
+#ifndef MBED_LEDFLASH_H
+#define MBED_LEDFLASH_H
+ 
+#include "mbed.h"
+ 
+class LEDFLASH {
+public:
+    LEDFLASH(PinName pin);
+    void out(int n);                             
+   
+ 
+private:
+    DigitalOut number;
+
+};
+ 
+
+ 
+#endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Nov 25 15:28:38 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11
\ No newline at end of file