motor

fun motor(name: String): Lazy<DcMotor>

Helper function to create a motor property delegate.

Return

a Lazy that gets the motor from the hardware map

Parameters

name

the name of the motor