Yosuke Kirihata / Mbed 2 deprecated Nucleo_CaitSith_Firmware_added_delayServo

Dependencies:   mbed

Fork of Nucleo_CaitSith_Firmware by Yosuke Kirihata

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers PwmServo.h Source File

PwmServo.h

00001 #ifndef __PWMSERVO_H__
00002 #define __PWMSERVO_H__
00003 
00004 #include <mbed.h>
00005 
00006 /*
00007 
00008     Controller firmware for CaitSithDanger
00009     
00010     Kyoto-Densou-An 2014
00011 
00012     Author : yishii
00013 */
00014 
00015 class PwmServo
00016 {
00017     public:
00018         PwmServo(PinName pin);
00019         ~PwmServo();
00020         void setAngle(float angle);
00021     
00022     private:
00023         static const int PWM_CONTROL_PERIOD = 20;
00024         PwmOut* pwm;
00025 };
00026 
00027 #endif /* __PWMSERVO_H__ */
00028