setDirection

open fun setDirection(direction: DcMotorSimple.Direction)

Sets the direction of the encoder to forward or reverse

Parameters

direction

the desired direction