Machine Vision Status TCP Server
Dependencies: C12832 EthernetInterface mbed-rtos mbed ConfigFile
Diff: RGBStatusIndicator.h
- Revision:
- 8:845dfadaa70d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/RGBStatusIndicator.h Mon Jun 15 12:07:05 2015 +0000 @@ -0,0 +1,29 @@ +#ifndef RGB_STATUS_INDICATOR_HEADER +#define RGB_STATUS_INDICATOR_HEADER + +#include "StatusIndicator.h" +#include "mbed.h" + +namespace MachineVision{ + + class RGBStatusIndicator: public StatusIndicator{ + public: + + private: + PwmOut rOut; + PwmOut gOut; + PwmOut bOut; + + public: + RGBStatusIndicator(PinName red_pin, PinName green_pin, PinName blue_pin); + virtual void setStatus(Indication indication); + + private: + void initializeRGB(void); + void setRGB(int r, int g, int b); + void clearRGB(void); + + }; +} + +#endif