12 bool Romi32U4Motors::flipLeft =
false;
13 bool Romi32U4Motors::flipRight =
false;
15 int16_t Romi32U4Motors::maxSpeed = 300;
18 void Romi32U4Motors::init2()
100 maxSpeed = turbo ? 400 : 300;
static void setOutput(bool value) __attribute__((always_inline))
Sets the pin as an output.
static void flipRightMotor(bool flip)
Flips the direction of the right motor.
static void setRightSpeed(int16_t speed)
Sets the speed for the right motor.
static void flipLeftMotor(bool flip)
Flips the direction of the left motor.
static void allowTurbo(bool turbo)
Turns turbo mode on or off.
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 setLeftSpeed(int16_t speed)
Sets the speed for the left motor.