NerfUS / Servomotor

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;
};