From e51a32b69f2a8544fb8542ba3abd8d5754b11d8c Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Thu, 22 Feb 2018 10:03:25 -0800 Subject: [PATCH] use full motor names (#338) --- libs/color-sensor/color.ts | 1 + libs/core/output.ts | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/libs/color-sensor/color.ts b/libs/color-sensor/color.ts index 9a048418..ab8cd739 100644 --- a/libs/color-sensor/color.ts +++ b/libs/color-sensor/color.ts @@ -316,6 +316,7 @@ namespace sensors { /** * Returns a color that the sensor can detect + * @param color the color sensed by the sensor, eg: ColorSensorColor.Red */ //% shim=TD_ID //% blockId=colorSensorColor block="color %color" diff --git a/libs/core/output.ts b/libs/core/output.ts index b0fa3e4c..e08c06d9 100644 --- a/libs/core/output.ts +++ b/libs/core/output.ts @@ -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); - //% whenUsed fixedInstance block="large B" + //% whenUsed fixedInstance block="large motor B" 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); - //% whenUsed fixedInstance block="large D" + //% whenUsed fixedInstance block="large motor D" 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); - //% whenUsed fixedInstance block="medium B" + //% whenUsed fixedInstance block="medium motor B" 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); - //% whenUsed fixedInstance block="medium D" + //% whenUsed fixedInstance block="medium motor D" export const mediumD = new Motor(Output.D, false); //% 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); - //% whenUsed fixedInstance block="large A+D" + //% whenUsed fixedInstance block="large motors A+D" 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); - //% whenUsed fixedInstance block="large C+D" + //% whenUsed fixedInstance block="large motors C+D" export const largeCD = new SynchedMotorPair(Output.CD); function reset(out: Output) {