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.
CompLedDvr/LedPwmOut.cpp
- Committer:
- nxp_ip
- Date:
- 2015-03-04
- Revision:
- 0:da1fe3fe7093
File content as of revision 0:da1fe3fe7093:
#include "mbed.h"
#include "LedPwmOut.h"
LedPwmOut::LedPwmOut( CompLedDvr &ledp, LedPinName pin_name )
: leddvrp( &ledp ), pin( pin_name )
{
pwm( 0.0 );
}
LedPwmOut::~LedPwmOut()
{
}
void LedPwmOut::pwm( float v )
{
leddvrp->pwm( pin, v );
}
LedPwmOut& LedPwmOut::operator=( float rhs )
{
pwm( rhs );
return ( *this );
}
PCA9632 : 4ch LED driver (voltage switch type)