From 1b51320edb0a9484c0f3cf398a4dd3c458a485a1 Mon Sep 17 00:00:00 2001 From: Peli de Halleux Date: Tue, 24 Oct 2017 20:20:07 -0700 Subject: [PATCH] pausing while running motor --- libs/core/output.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/core/output.ts b/libs/core/output.ts index 1b73ca8a..66a9b5b8 100644 --- a/libs/core/output.ts +++ b/libs/core/output.ts @@ -113,13 +113,14 @@ namespace output { //% weight=98 group="Motors" blockGap=8 onForTime(power: number, ms: number, brake = false) { step(this.port, { - speed: power, + power, step1: 0, step2: ms, step3: 0, useSteps: false, useBrake: brake }) + loops.pause(ms); } /**