Class that stores state and functions for seesaw motor interface.
More...
#include <seesaw_motor.h>
Class that stores state and functions for seesaw motor interface.
◆ seesaw_Motor()
class constructor
- Parameters
-
ss | the seesaw object to use |
◆ attach()
void seesaw_Motor::attach |
( |
int |
pina, |
|
|
int |
pinb |
|
) |
| |
|
inline |
attach the motor to the specified PWM pins
- Parameters
-
pina | the positive pin to use |
pinb | the negative pin to use |
◆ throttle()
void seesaw_Motor::throttle |
( |
float |
value | ) |
|
|
inline |
set the throttle
- Parameters
-
value | the throttle value to set between -1 and 1. Passing 0 will turn the motor off. |
◆ getThrottle()
float seesaw_Motor::getThrottle |
( |
| ) |
|
|
inline |
get the current throttle value
- Returns
- the current throttle value between -1 and 1
The documentation for this class was generated from the following file: