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.
Dependents: ServomotorTests NerfUSTarget
include/RealPwmOut.hpp
- Committer:
 - GaiSensei
 - Date:
 - 2017-04-11
 - Revision:
 - 8:e42a3a06e072
 - Parent:
 - 7:a5b6e6d9ad3d
 
File content as of revision 8:e42a3a06e072:
#include "PwmOutInterface.hpp"
#include "mbed.h"
class RealPwmOut : public PwmOutInterface
{
    public:
        RealPwmOut(PinName pin) :
            pwm_out(pin)
        {
        }
        
        virtual void pulsewidth_us(int us)
        {
            pwm_out.pulsewidth_us(us);
        }
               
    private:
        PwmOut pwm_out;
};