Damian Herman / Mbed 2 deprecated NetrunnerMain

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers RgbLed.h Source File

RgbLed.h

00001 #ifndef RGBLED_H
00002 #define RGBLED_H
00003 #include "mbed.h"
00004 class RgbLed
00005 {
00006     public:
00007             RgbLed(int red, int green, int blue);
00008             ~RgbLed();
00009             void setRgbLedState(int newRedState, int newGreenState, int newBlueState);
00010     private:
00011             int redPos;
00012             int greenPos;
00013             int bluePos;
00014             int redState;
00015             int greenState;
00016             int blueState;
00017 };
00018 #endif //RGBLED_H