Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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
Generated on Thu Sep 1 2022 20:44:59 by
1.7.2