譯文 張
/
7_7Boboobooo
123
Fork of Boboobooo by
servo_api.h@6:b046d6ff3745, 2014-07-07 (annotated)
- Committer:
- physicsgood
- Date:
- Mon Jul 07 08:16:46 2014 +0000
- Revision:
- 6:b046d6ff3745
- Parent:
- 0:68c173249c01
QQQQQQQ
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
backman | 0:68c173249c01 | 1 | |
backman | 0:68c173249c01 | 2 | #include "mbed.h" |
backman | 0:68c173249c01 | 3 | |
backman | 0:68c173249c01 | 4 | |
backman | 0:68c173249c01 | 5 | |
backman | 0:68c173249c01 | 6 | class BX_servo{ |
backman | 0:68c173249c01 | 7 | |
backman | 0:68c173249c01 | 8 | |
backman | 0:68c173249c01 | 9 | public: |
physicsgood | 6:b046d6ff3745 | 10 | float set_angle(float a); |
backman | 0:68c173249c01 | 11 | |
backman | 0:68c173249c01 | 12 | BX_servo(void); |
backman | 0:68c173249c01 | 13 | |
backman | 0:68c173249c01 | 14 | |
backman | 0:68c173249c01 | 15 | |
backman | 0:68c173249c01 | 16 | |
backman | 0:68c173249c01 | 17 | |
backman | 0:68c173249c01 | 18 | |
backman | 0:68c173249c01 | 19 | |
backman | 0:68c173249c01 | 20 | private: |
backman | 0:68c173249c01 | 21 | |
backman | 0:68c173249c01 | 22 | //-90~0~90 |
physicsgood | 6:b046d6ff3745 | 23 | float angle ; |
backman | 0:68c173249c01 | 24 | |
backman | 0:68c173249c01 | 25 | PwmOut* servo_in; |
backman | 0:68c173249c01 | 26 | //0~36 // 18 mid |
physicsgood | 6:b046d6ff3745 | 27 | |
backman | 0:68c173249c01 | 28 | |
backman | 0:68c173249c01 | 29 | }; |