Dependents: serial_connected_mcu_nucleo serial_connected_mcu_nucleo
servo.hpp@4:31ed2ce96ca3, 2016-06-25 (annotated)
- Committer:
- inst
- Date:
- Sat Jun 25 09:16:14 2016 +0000
- Revision:
- 4:31ed2ce96ca3
- Parent:
- 2:58169cf31b49
- Child:
- 5:a4d580b86638
????????????
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
inst | 0:54b8292756b8 | 1 | #ifndef INCLUDED_MBED_STL_SERVO_H |
inst | 0:54b8292756b8 | 2 | #define INCLUDED_MBED_STL_SERVO_H |
inst | 0:54b8292756b8 | 3 | |
inst | 0:54b8292756b8 | 4 | #include "mbed.h" |
inst | 0:54b8292756b8 | 5 | |
inst | 0:54b8292756b8 | 6 | class servo{ |
inst | 0:54b8292756b8 | 7 | public: |
inst | 0:54b8292756b8 | 8 | servo(PinName pin); |
inst | 0:54b8292756b8 | 9 | void set_position(float pos); |
inst | 0:54b8292756b8 | 10 | |
inst | 0:54b8292756b8 | 11 | private: |
inst | 2:58169cf31b49 | 12 | static const float _min_position_sec; |
inst | 2:58169cf31b49 | 13 | static const float _max_position_sec; |
inst | 2:58169cf31b49 | 14 | PwmOut _pwm; |
inst | 0:54b8292756b8 | 15 | }; |
inst | 0:54b8292756b8 | 16 | |
inst | 0:54b8292756b8 | 17 | #endif |