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

#include <arpirobot/devices/L298NModule.hpp>

Public Member Functions

 L298NModule (int in1Pin, int in2Pin, int enaPin, int in3Pin, int in4Pin, int enbPin)
 
L298NMotorgetMotorA ()
 
L298NMotorgetMotorB ()
 

Detailed Description

L298N Module (two motors)

Constructor & Destructor Documentation

◆ L298NModule()

arpirobot::L298NModule::L298NModule ( int  in1Pin,
int  in2Pin,
int  enaPin,
int  in3Pin,
int  in4Pin,
int  enbPin 
)
Parameters
in1PinIn1 pin for module (motor a)
in2PinIn2 pin for module (motor a)
enaPinPWM pin for motor a of module
in3PinIn3 pin for module (motor b)
in4PinIn4 pin for module (motor b)
enbPinPWM pin for motor b of module

Member Function Documentation

◆ getMotorA()

L298NMotor& arpirobot::L298NModule::getMotorA ( )

Get the Motor instance for motor a

◆ getMotorB()

L298NMotor& arpirobot::L298NModule::getMotorB ( )

Get the Motor instance for motor b


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