31 #include <mraa/pwm.hpp> 32 #include <mraa/common.hpp> 33 #include <mraa/gpio.hpp> 88 StepMotor (
int dirPin,
int stePin,
int steps = 200,
int enPin = -1);
117 mraa::Result
step (
int ticks);
163 mraa::Gpio m_dirPinCtx;
164 mraa::Gpio m_stePinCtx;
165 mraa::Gpio *m_enPinCtx;
171 mraa::Result dirForward ();
172 mraa::Result dirBackward ();
174 void delayus (
int us);
mraa::Result stepBackward(int ticks)
Definition: stepmotor.cxx:116
int getStep()
Definition: stepmotor.cxx:137
mraa::Result stepForward(int ticks)
Definition: stepmotor.cxx:105
StepMotor(int dirPin, int stePin, int steps=200, int enPin=-1)
Definition: stepmotor.cxx:36
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
void enable(bool flag)
Definition: stepmotor.cxx:76
mraa::Result step(int ticks)
Definition: stepmotor.cxx:96
~StepMotor()
Definition: stepmotor.cxx:70
void setSpeed(int speed)
Definition: stepmotor.cxx:86
API for the Stepper Motor.
Definition: stepmotor.hpp:78
int getPosition()
Definition: stepmotor.cxx:132
void setPosition(int pos)
Definition: stepmotor.cxx:127