Michael Parrish / Mbed 2 deprecated EMBEDDED4180

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers LEDController.h Source File

LEDController.h

00001 #ifndef LEDController_H
00002 #define LEDController_H
00003 
00004 //Class to control an RGB LED using three PWM pins
00005 class RGBLed
00006 {
00007 public:
00008     RGBLed(PinName redpin, PinName greenpin, PinName bluepin);
00009     void write(float red,float green, float blue);
00010 private:
00011     PwmOut _redpin;
00012     PwmOut _greenpin;
00013     PwmOut _bluepin;
00014 };
00015 
00016 void Control();
00017 
00018 void NoControl(); 
00019 
00020 #endif // LEDController_h