ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
|
#include <arpirobot/devices/TB6612Module.hpp>
Public Member Functions | |
TB6612Module (int aIn1Pin, int aIn2Pin, int pwmaPin, int bIn1Pin, int bIn2Pin, int pwmbPin) | |
TB6612Motor & | getMotorA () |
TB6612Motor & | getMotorB () |
TB6612 Module (two motors)
arpirobot::TB6612Module::TB6612Module | ( | int | aIn1Pin, |
int | aIn2Pin, | ||
int | pwmaPin, | ||
int | bIn1Pin, | ||
int | bIn2Pin, | ||
int | pwmbPin | ||
) |
aIn1Pin | In1 pin for motor a of module |
aIn2Pin | In2 pin for motor a of module |
pwmaPin | PWM pin for motor a of module |
bIn1Pin | In1 pin for motor b of module |
bIn2Pin | In2 pin for motor b of module |
pwmbPin | PWM pin for motor b of module |
TB6612Motor& arpirobot::TB6612Module::getMotorA | ( | ) |
Get the Motor instance for motor a
TB6612Motor& arpirobot::TB6612Module::getMotorB | ( | ) |
Get the Motor instance for motor b