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.
RightServoMotor.h
- Committer:
- avinashr
- Date:
- 2015-03-26
- Revision:
- 1:4ec28912c9e7
- Child:
- 2:2cc70773996b
File content as of revision 1:4ec28912c9e7:
#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; }