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(); 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);