control DC motor using pwm
Dependencies: Motordriver mbed
Fork of Motor_HelloWorld by
Diff: pwm-motor.h
- Revision:
- 1:a96dd8db5c11
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pwm-motor.h Sun Dec 11 21:58:45 2016 +0000 @@ -0,0 +1,12 @@ +#ifndef PWM_MOTOR_H +#define PWM_MOTOR_H + +struct Movement; +enum Direction; + +void clear_screen(); +void show_menu(); +void move(Motor& motor, Movement& movement); +void stop(Motor& motor); + +#endif \ No newline at end of file