17 #ifndef _Adafruit_MotorShield_h_ 18 #define _Adafruit_MotorShield_h_ 20 #include "utility/Adafruit_MS_PWMServoDriver.h" 25 #define MICROSTEPS 16 // 8 or 16 60 uint8_t PWMpin, IN1pin, IN2pin;
71 void step(uint16_t steps, uint8_t dir, uint8_t style = SINGLE);
72 uint8_t onestep(uint8_t dir, uint8_t style);
80 uint8_t PWMApin, AIN1pin, AIN2pin;
81 uint8_t PWMBpin, BIN1pin, BIN2pin;
94 bool begin(uint16_t freq = 1600, TwoWire *theWire = &Wire);
100 void setPWM(uint8_t pin, uint16_t val);
101 void setPin(uint8_t pin,
boolean val);
108 Adafruit_MS_PWMServoDriver _pwm;
void fullOn()
Set DC motor to full on.
Definition: Adafruit_MotorShield.cpp:269
Definition: Adafruit_MotorShield.h:49
void run(uint8_t)
Control the DC Motor direction and action.
Definition: Adafruit_MotorShield.cpp:227
Definition: Adafruit_MotorShield.h:90
void setSpeed(uint8_t)
Control the DC Motor speed/throttle.
Definition: Adafruit_MotorShield.cpp:250
void setSpeedFine(uint16_t speed)
Control the DC Motor speed/throttle with 12 bit resolution.
Definition: Adafruit_MotorShield.cpp:260
Adafruit_DCMotor(void)
Create a DCMotor object, un-initialized! You should never call this, instead have the Adafruit_MotorS...
Definition: Adafruit_MotorShield.cpp:215
Definition: Adafruit_MotorShield.h:66
friend class Adafruit_MotorShield
Let MotorShield create DCMotors.
Definition: Adafruit_MotorShield.h:52
void fullOff()
Set DC motor to full off.
Definition: Adafruit_MotorShield.cpp:276