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: Servo.h
- Revision:
- 0:e35f0aee6a1f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Servo.h Tue Jun 23 02:47:53 2020 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+class Servo
+{
+ public:
+ Servo(PinName pin, double period, double pulsewidth);
+ void init();
+ void servoMove(double);
+
+ private:
+ PwmOut *servo;
+ PinName pin;
+ double period;
+ double pulseWidth;
+};
\ No newline at end of file