ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
|
#include <arpirobot/devices/L298NModule.hpp>
Public Member Functions | |
L298NModule (int in1Pin, int in2Pin, int enaPin, int in3Pin, int in4Pin, int enbPin) | |
L298NMotor & | getMotorA () |
L298NMotor & | getMotorB () |
L298N Module (two motors)
arpirobot::L298NModule::L298NModule | ( | int | in1Pin, |
int | in2Pin, | ||
int | enaPin, | ||
int | in3Pin, | ||
int | in4Pin, | ||
int | enbPin | ||
) |
in1Pin | In1 pin for module (motor a) |
in2Pin | In2 pin for module (motor a) |
enaPin | PWM pin for motor a of module |
in3Pin | In3 pin for module (motor b) |
in4Pin | In4 pin for module (motor b) |
enbPin | PWM pin for motor b of module |
L298NMotor& arpirobot::L298NModule::getMotorA | ( | ) |
Get the Motor instance for motor a
L298NMotor& arpirobot::L298NModule::getMotorB | ( | ) |
Get the Motor instance for motor b