Avinash Repaka / Mbed 2 deprecated Lab4_519

Dependencies:   mbed

Revision:
1:4ec28912c9e7
Child:
2:2cc70773996b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/RightServoMotor.h	Thu Mar 26 02:25:46 2015 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+
+/*Right Door Actuator*/
+
+class RightServoMotor {
+private:
+    PwmOut outputPin;
+public:
+    RightServoMotor (PinName outputPin_): outputPin(outputPin_) {outputPin.period(0.020);}
+    void open();        
+    void close();
+};
+ 
+void RightServoMotor::open(){
+    outputPin = 0.125f;
+}
+ 
+void RightServoMotor::close(){
+    outputPin = 0.075f;
+}
\ No newline at end of file