From 6eab53eb0ae2e5c3561f8ba31c763c7cd615dfb0 Mon Sep 17 00:00:00 2001 From: Michael Klein <37311672+MKleinSB@users.noreply.github.com> Date: Tue, 22 Sep 2020 21:36:20 +0200 Subject: [PATCH] fixed gesture sensor --- main.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/main.ts b/main.ts index 5b64014..bf2d3a2 100644 --- a/main.ts +++ b/main.ts @@ -138,9 +138,7 @@ namespace grove { /** * Create a new driver of Grove - Gesture */ - //% blockId=grove_gesture_init block="%Gesturemodul|initiate the Grove - Gesture" - //% group="Gesture" - init() { + init() { this.paj7620Init(); basic.pause(200); } @@ -148,8 +146,7 @@ namespace grove { /** * Detect and recognize the gestures from Grove - Gesture */ - //% blockId=grove_gesture_read block="%Gesturemodul|get gesture" - //% group="Gesture" + read(): number { let data = 0, result = 0;