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:
- 2022-06-16
- Revision:
- 2:cc08ac7ed407
- Parent:
- 0:6d2f6c0fcc40
File content as of revision 2:cc08ac7ed407:
#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 ); }