Library is coded to control servo This library is part of my project which is built on FRDM-KL25Z and motor shield l293D v1

Revision:
0:22a971e060ed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ServoMotorControl.h	Sun Sep 24 18:41:24 2017 +0000
@@ -0,0 +1,18 @@
+#ifndef MBED_SERVO_H
+#define MBED_SERVO_H
+
+#include "mbed.h"
+
+class Servo
+{
+public:
+    Servo(PinName pwm);
+    void turn2Angle(int degree);
+    void turn2pulse(float value);
+    float positionRead();
+private:
+    PwmOut _pwm;
+    float _position;
+};
+
+#endif
\ No newline at end of file