The document discusses buttons on the Micro:bit device. It describes the Micro:bit buttons A and B that can trigger actions in a programmed code by detecting if they are pressed. It also explains conditional "if" and "if/else" command blocks that allow code to execute depending on whether a condition is true or false, such as checking the state of the A or B buttons. The button command block is used to get the pressed or not pressed state of the A and B buttons.
The document discusses buttons on the Micro:bit device. It describes the Micro:bit buttons A and B that can trigger actions in a programmed code by detecting if they are pressed. It also explains conditional "if" and "if/else" command blocks that allow code to execute depending on whether a condition is true or false, such as checking the state of the A or B buttons. The button command block is used to get the pressed or not pressed state of the A and B buttons.
The document discusses buttons on the Micro:bit device. It describes the Micro:bit buttons A and B that can trigger actions in a programmed code by detecting if they are pressed. It also explains conditional "if" and "if/else" command blocks that allow code to execute depending on whether a condition is true or false, such as checking the state of the A or B buttons. The button command block is used to get the pressed or not pressed state of the A and B buttons.
• 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