1#ifndef J_MOTOR_DRIVER_H
2#define J_MOTOR_DRIVER_H
18 virtual bool set(
float val);
77#if !defined(ESP32) || defined(J_MOTOR_DRIVER_FORCE_ANALOGWRITE) || defined(ESP8266)
defines common interface for all types of JMotorDrivers
Definition JMotorDriver.h:10
virtual bool set(float val)
set motor power
virtual bool setEnable(bool _enable)
use to enable or disable a motor, and sets up pin states
virtual float getMaxRange()
high end of the range
virtual float getMinRange()
low end of the range
virtual bool getEnable()
get the enable state of the driver
bool disable()
disable motor
Definition JMotorDriver.h:63
bool enable()
enable motor
Definition JMotorDriver.h:53