Gets user Input to turn the servo to certain degrees
Diff: servo.h
- Revision:
- 7:78973b67cd90
- Parent:
- 3:5b6a55afc60a
--- a/servo.h Sun Jan 13 22:33:48 2019 +0000 +++ b/servo.h Mon Jan 14 00:35:57 2019 +0000 @@ -1,7 +1,8 @@ #ifndef SERVO_H #define SERVO_H #include "mbed.h" - +extern PwmOut servo; void setServo(); void moveServo(char a); -int pulsewidth(int a); \ No newline at end of file +int pulsewidth(int a); +#endif \ No newline at end of file