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.
Dependencies: mbed wave_player mbed-rtos 4DGL-uLCD-SE SDFileSystem_OldbutworkswithRTOS
RGBLed.h
00001 #include "mbed.h" 00002 //Class to control an RGB LED using three PWM pins 00003 class RGBLed 00004 { 00005 public: 00006 RGBLed(PinName redpin, PinName greenpin, PinName bluepin); 00007 void write(float red,float green, float blue); 00008 private: 00009 PwmOut _redpin; 00010 PwmOut _greenpin; 00011 PwmOut _bluepin; 00012 };
Generated on Fri Jul 15 2022 04:49:16 by
1.7.2