![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
jj
Dependencies: BLE_API mbed nRF51822
Fork of nRF51822_SimpleControls by
Servo.h
- Committer:
- RedBearLab
- Date:
- 2014-10-31
- Revision:
- 0:dfcebc1e442a
- Child:
- 1:f03072e32ed3
File content as of revision 0:dfcebc1e442a:
#ifndef _SERVO_H #define _SERVO_H #include "mbed.h" class Servo { public: Servo(PinName pin); ~Servo(void); void write(unsigned char degree); private: void convert(unsigned char degree); PwmOut _servo; unsigned int pulse; }; #endif