From d7fcfe1ff3092b9855f024292a49dd740149da23 Mon Sep 17 00:00:00 2001 From: WayenWeng Date: Fri, 23 Jun 2017 12:59:32 +0800 Subject: [PATCH] Update --- main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.ts b/main.ts index a5b620d..c6aec4c 100644 --- a/main.ts +++ b/main.ts @@ -69,7 +69,7 @@ namespace grove { const gestureEventId = 3100; let lastGesture = GroveGesture.None; let paj7620: PAJ7620 = undefined; - + let data: number = 0; /** * Do something when a gesture is detected by Grove - Gesture * @param gesture type of gesture to detect @@ -82,7 +82,7 @@ namespace grove { paj7620.init(); control.inBackground(() => { const gesture = paj7620.read(); - basic.showNumber(gesture) + basic.showNumber(data ++); if (gesture != lastGesture) { lastGesture = gesture; control.raiseEvent(gestureEventId, lastGesture);