12 bool Balboa32U4Motors::flipLeft =
false;
13 bool Balboa32U4Motors::flipRight =
false;
15 int16_t Balboa32U4Motors::maxSpeed = 300;
18 void Balboa32U4Motors::init2()
100 maxSpeed = turbo ? 400 : 300;
static void setRightSpeed(int16_t speed)
Sets the speed for the right motor.
static void setLeftSpeed(int16_t speed)
Sets the speed for the left motor.
static void setOutput(bool value) __attribute__((always_inline))
Sets the pin as an output.
static void allowTurbo(bool turbo)
Turns turbo mode on or off.
static void flipRightMotor(bool flip)
Flips the direction of the right motor.
static void setSpeeds(int16_t leftSpeed, int16_t rightSpeed)
Sets the speed for both motors.
static void setOutputLow() __attribute__((always_inline))
Configures the pin to be an output driving low.
static void flipLeftMotor(bool flip)
Flips the direction of the left motor.