Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:c50dab27dd69, committed 2015-11-25
- Comitter:
 - cless
 - Date:
 - Wed Nov 25 15:28:38 2015 +0000
 - Commit message:
 - hello!
 
Changed in this revision
--- /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