This commit is contained in:
WayenWeng 2017-06-23 12:52:19 +08:00
parent d623fae434
commit 32cd08e94c

View File

@ -82,6 +82,7 @@ namespace grove {
paj7620.init();
control.inBackground(() => {
const gesture = paj7620.read();
basic.showNumber(gesture)
if (gesture != lastGesture) {
lastGesture = gesture;
control.raiseEvent(gestureEventId, lastGesture);