378 B
378 B
On Event
Raise an event in the event bus.
control.onEvent(control.eventSourceId(EventBusSource.MICROBIT_ID_BUTTON_A), control.eventValueId(EventBusValue.MICROBIT_EVT_ANY), () => { });
This is an advanced API. For more information, see the micro:bit runtime messageBus documentation.