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.
PwmServo.h
- Committer:
- YosukeK
- Date:
- 2014-09-17
- Revision:
- 0:916047fa0d8b
- Child:
- 5:8223f5a154e2
File content as of revision 0:916047fa0d8b:
#ifndef __PWMSERVO_H__
#define __PWMSERVO_H__
#include <mbed.h>
/*
Controller firmware for CaitSithDanger
Kyoto-Densou-An 2014
Author : yishii
*/
class PwmServo
{
public:
PwmServo(PinName pin);
~PwmServo();
void setAngle(float angle);
private:
static const int PWM_CONTROL_PERIOD = 20;
PwmOut* pwm;
};
#endif /* __PWMSERVO_H__ */