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: RightServoMotor.h
- 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