simple wrapper for the K64F RGB Led

KRGBLed.cpp

Committer:
csjc99
Date:
2015-02-03
Revision:
0:ee2feb784400

File content as of revision 0:ee2feb784400:

#include "KRGBLed.h"

KRGBLed::KRGBLed(PinName redPin, PinName greenPin, PinName bluePin) :
    red(redPin),
    green(greenPin),
    blue(bluePin)
{
}

KRGBLed::~KRGBLed()
{
}

void KRGBLed::set(Color color)
{
    red = !(color & Red);
    green = !(color & Green);
    blue = !(color & Blue);
}