Modify gesture callback.
This commit is contained in:
parent
bbe56ee9cf
commit
1154cb2fef
2
main.ts
2
main.ts
@ -76,7 +76,7 @@ namespace grove {
|
||||
* @param handler code to run
|
||||
*/
|
||||
//% blockId=grove_gesture_create_event block="on Gesture|%gesture"
|
||||
export function onGesture(gesture: GroveGesture, handler: Action) {
|
||||
export function onGesture(gesture: GroveGesture, handler: () => void) {
|
||||
control.onEvent(gestureEventId, gesture, handler);
|
||||
if (!paj7620) {
|
||||
paj7620.init();
|
||||
|
Loading…
Reference in New Issue
Block a user