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.
LedPwmOutCC.cpp
- Committer:
- nxp_ip
- Date:
- 2015-03-19
- Revision:
- 1:877856770b37
- Parent:
- 0:6d2f6c0fcc40
- Child:
- 2:cc08ac7ed407
File content as of revision 1:877856770b37:
#include "mbed.h"
#include "LedPwmOutCC.h"
LedPwmOutCC::LedPwmOutCC( CompLedDvrCC &ledp, LedPinName pin_name )
: leddvrp( &ledp ), pin( pin_name )
{
pwm( 0.0 );
}
LedPwmOutCC::~LedPwmOutCC()
{
}
void LedPwmOutCC::pwm( float v )
{
leddvrp->pwm( pin, v );
}
void LedPwmOutCC::current( float v )
{
leddvrp->current( pin, v );
}
LedPwmOutCC& LedPwmOutCC::operator=( float rhs )
{
pwm( rhs );
return ( *this );
}