29 #include <mraa/gpio.h> 33 #define L298_DEFAULT_PWM_PERIOD 4 88 L298(
int pwm,
int dir1,
int dir2);
100 L298(
int stepsPerRev,
int en,
int i1,
int i2,
int i3,
int i4);
164 struct timeval m_startTime;
167 mraa_pwm_context m_pwm;
168 mraa_gpio_context m_dir1;
169 mraa_gpio_context m_dir2;
172 mraa_gpio_context m_stepEnable;
173 mraa_gpio_context m_stepI1;
174 mraa_gpio_context m_stepI2;
175 mraa_gpio_context m_stepI3;
176 mraa_gpio_context m_stepI4;
181 uint32_t m_stepDelay;
uint32_t getMillis()
Definition: l298.cxx:146
L298_DIRECTION_T
Definition: l298.hpp:75
void setPeriodMS(int ms)
Definition: l298.cxx:198
C++ API wrapper for the bh1749 driver.
Definition: a110x.hpp:29
~L298()
Definition: l298.cxx:175
void enable(bool enable)
Definition: l298.cxx:208
API for the L298 Dual H-Bridge Motor Driver.
Definition: l298.hpp:69
L298(int pwm, int dir1, int dir2)
Definition: l298.cxx:35
void stepperSteps(unsigned int steps)
Definition: l298.cxx:321
void setSpeed(int speed)
Definition: l298.cxx:221
void setDirection(L298_DIRECTION_T dir)
Definition: l298.cxx:248
void initClock()
Definition: l298.cxx:141