You are on page 1of 6

Micro:bit Button

What is Micro:bit Button?


• It is used to trigger an action based in the
program you uploaded.

A B
Programming
Conditional Command Blocks

If Command Blocks

It is a conditional block that, if proved true,


performs a function or displays information.
Conditional Command Blocks

If else Command Blocks


It is used to execute a block of code if a
specified condition is true. If the condition is
false, another block of code can be executed.
Button Command Block

It is used to get the button state


(pressed or not) for “A” and “B”.

You might also like