ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
Classes | Public Types | Public Member Functions | Protected Member Functions | List of all members
arpirobot::internal::AdafruitMotorHat Class Reference
Inheritance diagram for arpirobot::internal::AdafruitMotorHat:
arpirobot::IoDevice

Classes

class  LowLevelDCMotor
 

Public Types

enum class  MotorCommand { FORWARD , BACKWARD , BRAKE , RELEASE }
 

Public Member Functions

 AdafruitMotorHat (uint8_t address, uint8_t bus=1)
 
 AdafruitMotorHat (const AdafruitMotorHat &other)=delete
 
AdafruitMotorHatoperator= (const AdafruitMotorHat &other)=delete
 
std::shared_ptr< LowLevelDCMotorgetMotor (int index)
 

Protected Member Functions

void close () override
 

Detailed Description

Low level driver to interface with motor hat via I2C arpirobot BaseDevice implementatio is built on top of this Based on https://github.com/adafruit/Adafruit-Motor-HAT-Python-Library/blob/master/Adafruit_MotorHAT/


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