NerfUS / Servomotor

Dependents:   ServomotorTests NerfUSTarget

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers RealPwmOut.hpp Source File

RealPwmOut.hpp

00001 #include "PwmOutInterface.hpp"
00002 #include "mbed.h"
00003 
00004 class RealPwmOut : public PwmOutInterface
00005 {
00006     public:
00007         RealPwmOut(PinName pin) :
00008             pwm_out(pin)
00009         {
00010         }
00011         
00012         virtual void pulsewidth_us(int us)
00013         {
00014             pwm_out.pulsewidth_us(us);
00015         }
00016                
00017     private:
00018         PwmOut pwm_out;
00019 };