Colour sensors calibrated

Dependencies:   mbed-rtos mbed Servo QEI

Fork of ICRSEurobot13 by Thomas Branch

Revision:
3:717de74f6ebd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Sensors/Colour/Led.h	Mon Apr 01 15:33:48 2013 +0000
@@ -0,0 +1,23 @@
+#ifndef __led_h__
+#define __led_h__
+
+//Eurobot13 Led.h
+
+#include"mbed.h"
+
+class Led{
+    private:
+    DigitalOut led;
+    public:
+    Led(PinName digitalPin): led(digitalPin){ };
+    
+    void on(){
+        led = 1;
+    }
+    
+    void off(){
+        led = 0;
+    } 
+};
+
+#endif