Add a speed field editor

This commit is contained in:
Sam El-Husseini
2018-01-06 14:25:50 -08:00
parent 0345277bef
commit 5e21f9ab6d
5 changed files with 113 additions and 6 deletions

View File

@ -1 +1,14 @@
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;
}
}