Yi Lin Chen
/
Boboobooo
shared
Fork of Boboobooo by
Diff: servo_api.h
- Revision:
- 8:089b778962c4
- Parent:
- 0:68c173249c01
diff -r fe8665daf3e7 -r 089b778962c4 servo_api.h --- a/servo_api.h Mon Jul 07 06:52:03 2014 +0000 +++ b/servo_api.h Fri Oct 31 10:54:51 2014 +0000 @@ -1,15 +1,17 @@ + + #include "mbed.h" - - - + + + class BX_servo{ public: - int set_angle(int a); + float set_angle(float a); BX_servo(void); @@ -22,10 +24,11 @@ private: //-90~0~90 - int angle ; + float angle ; PwmOut* servo_in; //0~36 // 18 mid - float angle_level[37]; + - }; \ No newline at end of file + }; +