A - Events
blocks, events and messages
Last updated
Was this helpful?
blocks, events and messages
Last updated
Was this helpful?
In this section, we are learning different ways for the micro:bit to receive commands, or as they are called in coding, events. Events enable the interaction between us and the device (micro:bit). Some equivalent events in our daily life are:
Pressing a key on your keyboard
Starting a car by turning a key or pressing a button
Saying a command to enable your phone's digital assistant
The events we are exploring in the micro:bit are on start, forever, on shake and on button A pressed.​
We can trigger events with many different blocks in MakeCode as we saw in this section, but so far we only displayed text. In the next section, B - Animations, we are working with images.
Create a new project by going to and deleting the current blocks (on start and forever) from the Workspace by dragging them to the Block groups area.