Refactoring Ironcup 2020

Dependencies:   mbed mbed-rtos MotionSensor EthernetInterface

Revision:
0:8f5db5085df7
diff -r 000000000000 -r 8f5db5085df7 LED/LED.hpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LED/LED.hpp	Mon Sep 21 21:42:07 2020 +0000
@@ -0,0 +1,46 @@
+#ifndef __LED__
+#define __LED__
+
+#include "mbed.h"
+
+
+class LED {
+    private:
+    	int RGB_LED_ON;                    //active Low
+		int RGB_LED_OFF;                   //active Low
+		int MAIN_RGB_LED_ON;                    //active HIGH	
+		int MAIN_RGB_LED_OFF; 
+
+        // Leds Objects
+        DigitalOut red_led_main;
+        DigitalOut green_led_main;
+        DigitalOut blue_led_main;
+        
+        DigitalOut red_led_nxp;
+        DigitalOut green_led_nxp;
+        DigitalOut blue_led_nxp;
+
+
+    public:
+        enum{
+        	BLACK,
+        	RED,
+        	GREEN,
+        	BLUE,
+            WHITE,
+        	PURPLE,
+        	YELLOW,
+        	AQUA};
+            
+        LED(PinName red_main, PinName green_main, PinName blue_main, 
+		    PinName red_nxp, PinName green_nxp, PinName blue_nxp);
+
+        void set_leds_color_nxp(int color);
+        void turn_leds_off_nxp();
+
+        void set_leds_color_main(int color);
+        void turn_leds_off_main();
+        
+
+};
+#endif //__LED__
\ No newline at end of file