Update
This commit is contained in:
parent
d623fae434
commit
32cd08e94c
1
main.ts
1
main.ts
@ -82,6 +82,7 @@ namespace grove {
|
|||||||
paj7620.init();
|
paj7620.init();
|
||||||
control.inBackground(() => {
|
control.inBackground(() => {
|
||||||
const gesture = paj7620.read();
|
const gesture = paj7620.read();
|
||||||
|
basic.showNumber(gesture)
|
||||||
if (gesture != lastGesture) {
|
if (gesture != lastGesture) {
|
||||||
lastGesture = gesture;
|
lastGesture = gesture;
|
||||||
control.raiseEvent(gestureEventId, lastGesture);
|
control.raiseEvent(gestureEventId, lastGesture);
|
||||||
|
Loading…
Reference in New Issue
Block a user