RoboidControl for Arduino
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Passer::RoboidControl::TB6612 Class Reference

A TB6612 motor controller. More...

#include <TB6612.h>

Public Member Functions

 TB6612 ()
 Create an default TB6612 motor driver controller.
 
 __attribute__ ((warning("\n- Note that without PWM, the speed of the motor cannot be " "controlled.\n- Make sure the standby pin is pulled high.\n"))) TB6612(byte pinAIn1
 Create a TB6612 motor driver controller using only directional control.
 
 TB6612 (byte pinAIn1, byte pinAIn2, byte pinPWMA, byte pinBIn1, byte pinBIn2, byte pinPWMB)
 
 TB6612 (byte pinAIn1, byte pinAIn2, byte pinPWMA, byte pinBIn1, byte pinBIn2, byte pinPWMB, byte pinStandby)
 

Public Attributes

byte pinAIn2
 
byte byte pinBIn1
 
byte byte byte pinBIn2
 
TB6612Motor motorA
 
TB6612Motor motorB
 
byte pinStandby
 

Detailed Description

A TB6612 motor controller.

Constructor & Destructor Documentation

◆ TB6612() [1/3]

TB6612::TB6612 ( )

Create an default TB6612 motor driver controller.

◆ TB6612() [2/3]

Passer::RoboidControl::TB6612::TB6612 ( byte  pinAIn1,
byte  pinAIn2,
byte  pinPWMA,
byte  pinBIn1,
byte  pinBIn2,
byte  pinPWMB 
)

◆ TB6612() [3/3]

Passer::RoboidControl::TB6612::TB6612 ( byte  pinAIn1,
byte  pinAIn2,
byte  pinPWMA,
byte  pinBIn1,
byte  pinBIn2,
byte  pinPWMB,
byte  pinStandby 
)

Member Function Documentation

◆ __attribute__()

Passer::RoboidControl::TB6612::__attribute__ ( ( warning("\n- Note that without PWM, the speed of the motor cannot be " "controlled.\n- Make sure the standby pin is pulled high.\n"))  )

Create a TB6612 motor driver controller using only directional control.

Parameters
pinAIn1
pinAIn2
pinBIn1
pinBIn2
Warning
- Note that without PWM, the speed of the motor cannot be controlled.
- Make sure the standby pin is pulled high.

Member Data Documentation

◆ pinAIn2

byte Passer::RoboidControl::TB6612::pinAIn2

◆ pinBIn1

byte byte Passer::RoboidControl::TB6612::pinBIn1

◆ pinBIn2

byte byte byte Passer::RoboidControl::TB6612::pinBIn2

◆ motorA

TB6612Motor Passer::RoboidControl::TB6612::motorA

◆ motorB

TB6612Motor Passer::RoboidControl::TB6612::motorB

◆ pinStandby

byte Passer::RoboidControl::TB6612::pinStandby

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