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.
Diff: PwmServo.h
- Revision:
- 0:916047fa0d8b
- Child:
- 5:8223f5a154e2
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/PwmServo.h Wed Sep 17 15:17:24 2014 +0000
@@ -0,0 +1,28 @@
+#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__ */
+