31 #include <mraa/gpio.h>
35 #define ADAFRUITMS1438_I2C_BUS 0
36 #define ADAFRUITMS1438_DEFAULT_I2C_ADDR 0x60
104 AdafruitMS1438(
int bus, uint8_t address = ADAFRUITMS1438_DEFAULT_I2C_ADDR);
236 struct timeval startTime;
242 DC_PINMAP_T m_dcMotors[4];
243 STEPPER_PINMAP_T m_stepMotors[2];
244 STEPPER_CONFIG_T m_stepConfig[2];
void setStepperDirection(STEPMOTORS_T motor, DIRECTION_T dir)
Definition: adafruitms1438.cxx:189
void disableMotor(DCMOTORS_T motor)
Definition: adafruitms1438.cxx:128
uint32_t getMillis(STEPMOTORS_T motor)
Definition: adafruitms1438.cxx:69
void setStepperSpeed(STEPMOTORS_T motor, int speed)
Definition: adafruitms1438.cxx:158
void enableMotor(DCMOTORS_T motor)
Definition: adafruitms1438.cxx:123
void disableStepper(STEPMOTORS_T motor)
Definition: adafruitms1438.cxx:139
C++ API for the ADAFRUITMS1438 motor shield.
Definition: adafruitms1438.h:68
void stepperSteps(STEPMOTORS_T motor, unsigned int steps)
Definition: adafruitms1438.cxx:276
AdafruitMS1438(int bus, uint8_t address=ADAFRUITMS1438_DEFAULT_I2C_ADDR)
Definition: adafruitms1438.cxx:36
void setMotorDirection(DCMOTORS_T motor, DIRECTION_T dir)
Definition: adafruitms1438.cxx:164
~AdafruitMS1438()
Definition: adafruitms1438.cxx:59
void setMotorSpeed(DCMOTORS_T motor, int speed)
Definition: adafruitms1438.cxx:145
DIRECTION_T
Definition: adafruitms1438.h:74
void stepConfig(STEPMOTORS_T motor, unsigned int stepsPerRev)
Definition: adafruitms1438.cxx:205
void enableStepper(STEPMOTORS_T motor)
Definition: adafruitms1438.cxx:133
void setPWMPeriod(float hz)
Definition: adafruitms1438.cxx:115
void initClock(STEPMOTORS_T motor)
Definition: adafruitms1438.cxx:64
STEPMOTORS_T
Definition: adafruitms1438.h:93
DCMOTORS_T
Definition: adafruitms1438.h:83