31 #include <mraa/gpio.h>
35 #define ADAFRUITMS1438_I2C_BUS 0
36 #define ADAFRUITMS1438_DEFAULT_I2C_ADDR 0x60
105 AdafruitMS1438(
int bus, uint8_t address = ADAFRUITMS1438_DEFAULT_I2C_ADDR);
237 struct timeval startTime;
243 DC_PINMAP_T m_dcMotors[4];
244 STEPPER_PINMAP_T m_stepMotors[2];
245 STEPPER_CONFIG_T m_stepConfig[2];
void setStepperDirection(STEPMOTORS_T motor, DIRECTION_T dir)
Definition: adafruitms1438.cxx:194
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:163
void enableMotor(DCMOTORS_T motor)
Definition: adafruitms1438.cxx:123
void disableStepper(STEPMOTORS_T motor)
Definition: adafruitms1438.cxx:139
API for the AdafruitMS1438 Motor Shield.
Definition: adafruitms1438.h:69
void stepperSteps(STEPMOTORS_T motor, unsigned int steps)
Definition: adafruitms1438.cxx:281
AdafruitMS1438(int bus, uint8_t address=ADAFRUITMS1438_DEFAULT_I2C_ADDR)
Definition: adafruitms1438.cxx:36
STEPMOTORS_T
Definition: adafruitms1438.h:94
void setMotorDirection(DCMOTORS_T motor, DIRECTION_T dir)
Definition: adafruitms1438.cxx:169
~AdafruitMS1438()
Definition: adafruitms1438.cxx:59
DCMOTORS_T
Definition: adafruitms1438.h:84
void setMotorSpeed(DCMOTORS_T motor, int speed)
Definition: adafruitms1438.cxx:145
void stepConfig(STEPMOTORS_T motor, unsigned int stepsPerRev)
Definition: adafruitms1438.cxx:210
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
DIRECTION_T
Definition: adafruitms1438.h:75