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

14 lines
436 B
Markdown
Raw Normal View History

2016-07-21 01:25:09 +02:00
# Raise Event
2016-07-20 20:31:14 +02:00
2016-07-21 01:25:09 +02:00
Raise an event in the event bus.
2016-07-20 20:31:14 +02:00
```sig
2016-07-21 22:29:59 +02:00
control.raiseEvent(control.eventSourceId(EventBusSource.MICROBIT_ID_BUTTON_A), control.eventValueId(EventBusValue.MICROBIT_EVT_ANY));
2016-07-20 20:31:14 +02:00
```
2016-07-21 22:29:59 +02:00
**This is an advanced API.** For more information, see the
2016-11-02 01:44:37 +01:00
[@boardname@ runtime messageBus documentation](https://lancaster-university.github.io/microbit-docs/ubit/messageBus/)
## See Also
[radio raise event](/reference/radio/raise-event)