62 static void setSpeeds(int16_t leftSpeed, int16_t rightSpeed);
81 static inline void init()
83 static bool initialized =
false;
94 static int16_t maxSpeed;
96 static bool flipRight;
static void flipRightMotor(bool flip)
Flips the direction of the right motor.
Controls motor speed and direction on the Romi 32U4.
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 setLeftSpeed(int16_t speed)
Sets the speed for the left motor.