12 static bool _flipM1 =
false;
13 static bool _flipM2 =
false;
16 void AStar32U4Motors::init2()
static void setOutput(bool value) __attribute__((always_inline))
Sets the pin as an output.
static void setM2Speed(int16_t speed)
Sets the speed for motor 2.
static void setM1Speed(int16_t speed)
Sets the speed for motor 1.
static void flipM1(bool flip)
Flips the direction of motor 1.
static void setOutputLow() __attribute__((always_inline))
Configures the pin to be an output driving low.
static void flipM2(bool flip)
Flips the direction of motor 2.
static void setSpeeds(int16_t m2Speed, int16_t m1Speed)
Sets the speed for both motors.