ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
Public Member Functions | List of all members
arpirobot::TB6612Module Class Reference

#include <arpirobot/devices/TB6612Module.hpp>

Public Member Functions

 TB6612Module (int aIn1Pin, int aIn2Pin, int pwmaPin, int bIn1Pin, int bIn2Pin, int pwmbPin)
 
TB6612MotorgetMotorA ()
 
TB6612MotorgetMotorB ()
 

Detailed Description

TB6612 Module (two motors)

Constructor & Destructor Documentation

◆ TB6612Module()

arpirobot::TB6612Module::TB6612Module ( int  aIn1Pin,
int  aIn2Pin,
int  pwmaPin,
int  bIn1Pin,
int  bIn2Pin,
int  pwmbPin 
)
Parameters
aIn1PinIn1 pin for motor a of module
aIn2PinIn2 pin for motor a of module
pwmaPinPWM pin for motor a of module
bIn1PinIn1 pin for motor b of module
bIn2PinIn2 pin for motor b of module
pwmbPinPWM pin for motor b of module

Member Function Documentation

◆ getMotorA()

TB6612Motor& arpirobot::TB6612Module::getMotorA ( )

Get the Motor instance for motor a

◆ getMotorB()

TB6612Motor& arpirobot::TB6612Module::getMotorB ( )

Get the Motor instance for motor b


The documentation for this class was generated from the following file: