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

Dependencies:   C12832

RGBColor.h

Committer:
jensva
Date:
2021-02-05
Revision:
1:f2ac6d53f63d
Parent:
0:396b3f9574ea

File content as of revision 1:f2ac6d53f63d:


#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