Clark Lin
/
0709
QQQQQQQ
Fork of 7_7Boboobooo by
Diff: servo_api.h
- Revision:
- 0:68c173249c01
- Child:
- 6:b046d6ff3745
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/servo_api.h Sun May 25 12:41:59 2014 +0000 @@ -0,0 +1,31 @@ + + + +#include "mbed.h" + + + +class BX_servo{ + + + public: + int set_angle(int a); + + BX_servo(void); + + + + + + + + private: + + //-90~0~90 + int angle ; + + PwmOut* servo_in; + //0~36 // 18 mid + float angle_level[37]; + + }; \ No newline at end of file