33 #include <mraa/gpio.h>
35 #define MIN_PERIOD 500
36 #define MAX_PERIOD 1000
37 #define PULSEWIDTH 480
94 mraa_gpio_context m_dirPinCtx;
95 mraa_pwm_context m_pwmStepContext;
97 mraa_result_t move (
int ticks);
98 mraa_result_t dirForward ();
99 mraa_result_t dirBackwards ();
StepMotor(int dirPin, int stePin)
Definition: stepmotor.cxx:33
mraa_result_t stepBackwards(int ticks)
Definition: stepmotor.cxx:86
mraa_result_t stepForward(int ticks)
Definition: stepmotor.cxx:80
~StepMotor()
Definition: stepmotor.cxx:55
void setSpeed(int speed)
Definition: stepmotor.cxx:67
C++ API for StepMotor Drivers.
Definition: stepmotor.h:51