update to suppress warning of "last line of file ends without a newline"
LedPwmOutCC.cpp
- Committer:
- nxpfan
- Date:
- 23 months ago
- Revision:
- 2:04e0f6cc7fe5
- Parent:
- 0:6d2f6c0fcc40
File content as of revision 2:04e0f6cc7fe5:
#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 ); }