with the tof code

Dependencies:   mbed Servo ros_lib_kinetic

Revision:
5:bc5081f0c063
Child:
6:2cc2aac35868
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RGB_LED/LED.h	Tue Nov 12 10:36:59 2019 +0000
@@ -0,0 +1,28 @@
+#include "mbed.h"
+
+#ifndef LED_H
+#define LED_H
+
+#define DIAG_GRN PD_14
+#define DIAG_BLU PD_15
+#define DIAG_RED PF_12
+
+class cRBG_LED
+{
+public:
+    cRBG_LED(DigitalOut DIAG_RED, PwmOut DIAG_BLU, PwmOut DIAG_GRN);  //Constructor, initialises the 3 outputs
+    void red_led();
+    void blue_led();
+    void green_led();
+    void yellow_led();
+    void led_off();
+private:
+    DigitalOut _DIAG_RED;
+    PwmOut _DIAG_BLU;
+    PwmOut _DIAG_GRN;
+};
+
+ 
+
+
+#endif
\ No newline at end of file