2017-10-28 18:13:02 +02:00
|
|
|
|
2018-01-06 23:25:50 +01:00
|
|
|
namespace motors {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* A speed picker
|
|
|
|
* @param speed the speed
|
|
|
|
*/
|
|
|
|
//% blockId=motorSpeedPicker block="%speed" shim=TD_ID
|
|
|
|
//% speed.fieldEditor="speed" colorSecondary="#FFFFFF"
|
|
|
|
//% weight=0 blockHidden=1
|
|
|
|
export function __speedPicker(speed: number): number {
|
|
|
|
return speed;
|
|
|
|
}
|
|
|
|
}
|