Event Value

Get the value of the last event executed on the bus.

control.eventValue();

This is an advanced API. For more information, see the micro:bit runtime messageBus documentation.