Aktualisiere main.ts
This commit is contained in:
parent
90a76ba867
commit
43f597510a
4
main.ts
4
main.ts
@ -139,7 +139,6 @@ 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"
|
//% blockId=grove_gesture_init block="%Gesturemodul|initiate the Grove - Gesture"
|
||||||
//% advanced=true
|
|
||||||
//% group="Gesture"
|
//% group="Gesture"
|
||||||
init() {
|
init() {
|
||||||
this.paj7620Init();
|
this.paj7620Init();
|
||||||
@ -150,7 +149,6 @@ 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"
|
//% blockId=grove_gesture_read block="%Gesturemodul|get gesture"
|
||||||
//% advanced=true
|
|
||||||
//% group="Gesture"
|
//% group="Gesture"
|
||||||
read(): number {
|
read(): number {
|
||||||
let data = 0, result = 0;
|
let data = 0, result = 0;
|
||||||
@ -547,7 +545,7 @@ namespace grove {
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
//% blockId=grove_initgesture block="init gesture"
|
//% blockId=grove_initgesture block="init gesture"
|
||||||
//% group="4-Digit"
|
//% group="Gesture"
|
||||||
export function initGesture() {
|
export function initGesture() {
|
||||||
if (!paj7620) {
|
if (!paj7620) {
|
||||||
paj7620.init();
|
paj7620.init();
|
||||||
|
Loading…
Reference in New Issue
Block a user