pxt-calliope/docs/reference/control/event-source-id.md
2016-11-01 17:44:37 -07:00

365 B

Event Source ID

Return a code representing the origin of the event on the bus (button, pin, radio, and so on).

control.eventSourceId(EventBusSource.MICROBIT_ID_BUTTON_A);

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