|
TR-mbed 1.0
|
#include <PWMMotor.h>
Public Member Functions | |
| PWMMotor (PinName pin, int defaultVal=0) | |
| Constructor for PWMMotor. | |
| void | set (int motorVal) |
| Set PWM Output. | |
| PWMMotor::PWMMotor | ( | PinName | pin, |
| int | defaultVal = 0 |
||
| ) |
Constructor for PWMMotor.
| defaultVal | some motors will require a default value to send to the motor to initialize it. |
| void PWMMotor::set | ( | int | motorVal | ) |
Set PWM Output.
| motorVal | integer from 0 - 180 which corresponds to a pulse width from 1ms to 2ms |