use full motor names (#338)

This commit is contained in:
Peli de Halleux 2018-02-22 10:03:25 -08:00 committed by GitHub
parent 029066000d
commit e51a32b69f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 12 deletions

View File

@ -316,6 +316,7 @@ namespace sensors {
/** /**
* Returns a color that the sensor can detect * Returns a color that the sensor can detect
* @param color the color sensed by the sensor, eg: ColorSensorColor.Red
*/ */
//% shim=TD_ID //% shim=TD_ID
//% blockId=colorSensorColor block="color %color" //% blockId=colorSensorColor block="color %color"

View File

@ -421,28 +421,28 @@ namespace motors {
} }
} }
//% whenUsed fixedInstance block="large A" //% whenUsed fixedInstance block="large motor A"
export const largeA = new Motor(Output.A, true); export const largeA = new Motor(Output.A, true);
//% whenUsed fixedInstance block="large B" //% whenUsed fixedInstance block="large motor B"
export const largeB = new Motor(Output.B, true); export const largeB = new Motor(Output.B, true);
//% whenUsed fixedInstance block="large C" //% whenUsed fixedInstance block="large motor C"
export const largeC = new Motor(Output.C, true); export const largeC = new Motor(Output.C, true);
//% whenUsed fixedInstance block="large D" //% whenUsed fixedInstance block="large motor D"
export const largeD = new Motor(Output.D, true); export const largeD = new Motor(Output.D, true);
//% whenUsed fixedInstance block="medium A" //% whenUsed fixedInstance block="medium motor A"
export const mediumA = new Motor(Output.A, false); export const mediumA = new Motor(Output.A, false);
//% whenUsed fixedInstance block="medium B" //% whenUsed fixedInstance block="medium motor B"
export const mediumB = new Motor(Output.B, false); export const mediumB = new Motor(Output.B, false);
//% whenUsed fixedInstance block="medium C" //% whenUsed fixedInstance block="medium motor C"
export const mediumC = new Motor(Output.C, false); export const mediumC = new Motor(Output.C, false);
//% whenUsed fixedInstance block="medium D" //% whenUsed fixedInstance block="medium motor D"
export const mediumD = new Motor(Output.D, false); export const mediumD = new Motor(Output.D, false);
//% fixedInstances //% fixedInstances
@ -586,16 +586,16 @@ namespace motors {
} }
} }
//% whenUsed fixedInstance block="large B+C" //% whenUsed fixedInstance block="large motors B+C"
export const largeBC = new SynchedMotorPair(Output.BC); export const largeBC = new SynchedMotorPair(Output.BC);
//% whenUsed fixedInstance block="large A+D" //% whenUsed fixedInstance block="large motors A+D"
export const largeAD = new SynchedMotorPair(Output.AD); export const largeAD = new SynchedMotorPair(Output.AD);
//% whenUsed fixedInstance block="large A+B" //% whenUsed fixedInstance block="large motors A+B"
export const largeAB = new SynchedMotorPair(Output.AB); export const largeAB = new SynchedMotorPair(Output.AB);
//% whenUsed fixedInstance block="large C+D" //% whenUsed fixedInstance block="large motors C+D"
export const largeCD = new SynchedMotorPair(Output.CD); export const largeCD = new SynchedMotorPair(Output.CD);
function reset(out: Output) { function reset(out: Output) {