fixed gesture sensor
This commit is contained in:
parent
05160dbb5b
commit
6eab53eb0a
7
main.ts
7
main.ts
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user