A simple class for driving an RGB LED that uses standard color specification.

Dependencies:   C12832

Revision:
0:396b3f9574ea
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RGBColor.h	Fri May 24 03:21:40 2013 +0000
@@ -0,0 +1,22 @@
+
+#ifndef RGBCOLOR_H
+#define RGBCOLOR_H
+
+/** \brief Struct definition for a color made of up of RGB.
+  */
+  struct RGBColor
+  {
+    RGBColor() : red(0), green(0), blue(0)
+    {
+    }
+    
+    RGBColor(const float _red, const float _green, const float _blue) : red(_red), green(_green), blue(_blue)
+    {
+    }
+    
+    float red;
+    float green;
+    float blue; 
+  };
+  
+  #endif // RGBCOLOR_H
\ No newline at end of file