#include <PWMMotor.h>
|
| | PWMMotor (PinName pin, int defaultVal=0) |
| | Constructor for PWMMotor.
|
| |
| void | set (int motorVal) |
| | Set PWM Output.
|
| |
◆ PWMMotor()
| PWMMotor::PWMMotor |
( |
PinName |
pin, |
|
|
int |
defaultVal = 0 |
|
) |
| |
Constructor for PWMMotor.
- Parameters
-
| defaultVal | some motors will require a default value to send to the motor to initialize it. |
◆ set()
| void PWMMotor::set |
( |
int |
motorVal | ) |
|
Set PWM Output.
- Parameters
-
| motorVal | integer from 0 - 180 which corresponds to a pulse width from 1ms to 2ms |
The documentation for this class was generated from the following files: