pxt-calliope/docs/reference/control/raise-event.md

436 B

Raise Event

Raise an event in the event bus.

control.raiseEvent(control.eventSourceId(EventBusSource.MICROBIT_ID_BUTTON_A), control.eventValueId(EventBusValue.MICROBIT_EVT_ANY));

This is an advanced API. For more information, see the @boardname@ runtime messageBus documentation

See Also

radio raise event