Function on LEDs

Revision:
1:7fd22984c201
Parent:
0:38ffbf6895c1
Child:
2:6ef6066f3b6e
--- a/LEDFunction.h	Mon May 28 02:58:18 2012 +0000
+++ b/LEDFunction.h	Mon May 28 06:59:21 2012 +0000
@@ -1,28 +1,35 @@
-#ifndef MBED_LEDFUNCTION_H
-#define MBED_LEDFUNCTION_H
-
-#include "mbed.h"
-
-class LEDFunction{
-
-public:
-   LEDFunction(PinName);
-   void OnOff();
-   void Brightness(int);
-   void write_us(int);
-   void duty(float);
-   int read_us();
-    
-private:
-   void SigStart();
-   void SigStop();
-   DigitalOut _Pin;
-   int Period;
-   int PWMDuty;
-   int PWMMin;
-   int PWMMax;
-   Ticker Pulse;
-   Timeout PulseEnd; 
-};
-
-#endif    
\ No newline at end of file
+#include "mbed.h"
+
+#ifndef MBED_LEDFUNCTION_H
+#define MBED_LEDFUNCTION_H
+ 
+
+ 
+class LEDFunction{
+ 
+public:
+    LEDFunction(PinName);
+    void write_us(int);
+    void duty(float);
+    int read_us();
+    void OnOff();
+    void flash(int);
+    
+    
+ private:
+    void SigStart();
+    void SigStop();
+    DigitalOut _pin;
+    int Period;
+    int PWMDuty;
+    int PWMMin;
+    int PWMMax;
+    int i;
+    Ticker Pulse;
+    Timeout PulseEnd;
+ 
+ };
+    
+    
+#endif
+    
\ No newline at end of file