Function on LEDs

Revision:
2:6ef6066f3b6e
Parent:
1:7fd22984c201
--- a/LEDFunction.h	Mon May 28 06:59:21 2012 +0000
+++ b/LEDFunction.h	Mon May 28 09:31:32 2012 +0000
@@ -1,25 +1,21 @@
-#include "mbed.h"
-
 #ifndef MBED_LEDFUNCTION_H
 #define MBED_LEDFUNCTION_H
- 
+#include "mbed.h"
 
- 
 class LEDFunction{
- 
+
 public:
     LEDFunction(PinName);
     void write_us(int);
     void duty(float);
-    int read_us();
     void OnOff();
     void flash(int);
-    
-    
- private:
+    int read_us();
+
+private:
     void SigStart();
     void SigStop();
-    DigitalOut _pin;
+    DigitalInOut _pin;
     int Period;
     int PWMDuty;
     int PWMMin;
@@ -27,9 +23,6 @@
     int i;
     Ticker Pulse;
     Timeout PulseEnd;
- 
- };
-    
-    
-#endif
-    
\ No newline at end of file
+};
+
+#endif
\ No newline at end of file