fixed gesture sensor

This commit is contained in:
Michael Klein 2020-09-22 21:36:20 +02:00
parent 05160dbb5b
commit 6eab53eb0a

View File

@ -138,9 +138,7 @@ namespace grove {
/** /**
* Create a new driver of Grove - Gesture * Create a new driver of Grove - Gesture
*/ */
//% blockId=grove_gesture_init block="%Gesturemodul|initiate the Grove - Gesture" init() {
//% group="Gesture"
init() {
this.paj7620Init(); this.paj7620Init();
basic.pause(200); basic.pause(200);
} }
@ -148,8 +146,7 @@ namespace grove {
/** /**
* Detect and recognize the gestures from Grove - Gesture * Detect and recognize the gestures from Grove - Gesture
*/ */
//% blockId=grove_gesture_read block="%Gesturemodul|get gesture"
//% group="Gesture"
read(): number { read(): number {
let data = 0, result = 0; let data = 0, result = 0;