1#ifndef J_MOTOR_DRIVER_AVR_PWM_H
2#define J_MOTOR_DRIVER_AVR_PWM_H
37 analogWrite(pin, val);
39 return (_val > 0.0) && (_val < 1.0);
wrapper for analogWrite()
Definition JMotorDriverAvrPWM.h:10
int PWM_RANGE
change PWM_RANGE to match the range of analogWrite (change after using analogWriteResolution)
Definition JMotorDriverAvrPWM.h:19
float getMaxRange()
high end of the range
Definition JMotorDriverAvrPWM.h:64
bool disableState
Definition JMotorDriverAvrPWM.h:20
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
float getMinRange()
low end of the range
Definition JMotorDriverAvrPWM.h:68
JMotorDriverAvrPWM(byte _pin, bool _disableState=LOW)
constructor, sets pins
Definition JMotorDriverAvrPWM.h:27
bool getEnable()
get the enable state of the driver
Definition JMotorDriverAvrPWM.h:60
defines common interface for all types of JMotorDrivers
Definition JMotorDriver.h:10