Servomotor
Dependents: ServomotorTests NerfUSTarget
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 };
Generated on Thu Jul 14 2022 19:16:36 by
1.7.2