1#ifndef J_MOTOR_DRIVER_AVR_PWMDIR_H
2#define J_MOTOR_DRIVER_AVR_PWMDIR_H
43 return abs(val) < 1.0;
for motor controllers with one direction input and one speed input pin
Definition JMotorDriverAvrPWMDir.h:11
float getMaxRange()
high end of the range
Definition JMotorDriverAvrPWMDir.h:69
float getMinRange()
low end of the range
Definition JMotorDriverAvrPWMDir.h:73
JMotorDriverAvrPWM pwmDriver
Definition JMotorDriverAvrPWMDir.h:18
bool reverse
Definition JMotorDriverAvrPWMDir.h:17
bool setEnable(bool _enable)
use to enable or disable a motor, and sets up pin states
Definition JMotorDriverAvrPWMDir.h:45
bool getEnable()
get the enable state of the driver
Definition JMotorDriverAvrPWMDir.h:65
bool set(float val)
set motor power
Definition JMotorDriverAvrPWMDir.h:33
JMotorDriverAvrPWMDir(byte _speedPin, byte _dirPin, bool _rev=false)
constructor, sets pins
Definition JMotorDriverAvrPWMDir.h:26
wrapper for analogWrite()
Definition JMotorDriverAvrPWM.h:10
bool setEnable(bool _enable)
use to enable or disable a motor, and sets up pin states
Definition JMotorDriverAvrPWM.h:41
bool set(float _val)
set motor power
Definition JMotorDriverAvrPWM.h:33
defines common interface for all types of JMotorDrivers
Definition JMotorDriver.h:10