pxt-calliope/docs/reference/control.md

570 B

Control

Runtime and event utilities.

control.inBackground(() => {
    
});
control.reset();
control.waitMicros(4);
control.onEvent(0, 0, () => { });
control.raiseEvent(0, 0);
control.eventTimestamp();
control.eventValue();

See Also

inBackground, reset, waitMicros, onEvent, raiseEvent, eventTimestamp, eventValue