Function on LEDs

Revision:
0:3d463f0d51d9
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FonctionLED.h	Sat May 26 11:12:04 2012 +0000
@@ -0,0 +1,17 @@
+#ifndef MBED_FONCTIONLED_H
+#define MBED_FONCTIONLED_H
+
+#include "mbed.h"
+
+class FonctionLED{
+
+public:
+    FonctionLED (PinName pin);
+    void OnOff ();
+    void Brightness (int n);
+
+private:
+    DigitalOut _pin;
+};
+
+#endif
\ No newline at end of file