The Studio app has 5 categories of blocks:
Control
Input
Output
Notifier
Advanced
Note:
To fully understand the working and usage of most blocks, it would help to understand the usage of a few basic blocks Control blocks (If, Delay, Loop) and Output blocks (Buzzer and LED).
The functioning of these blocks is explained briefly below:
The If block evaluates the block(s) inside its head and executes the contents of the block based on whether the condition(s) evaluates to True or False.
(You can read more about how to use this block here)
This block repeats the blocks housed inside it a given number of times based on the loop parameter set in its head.
(You can read more about how to use this block here)
This block pauses the code for the duration specified or set inside the block. For instance, this example introduces a delay of 1 second in the project. The delay can be set in milliseconds, seconds, and minutes.
(You can read more about how to use this block here.
This sets the on-board LED ON to the desired colour.
This sets the on-board LED OFF.
(You can read more about how to use this block here)
This turns the on-board buzzer ON.
This turns the on-board buzzer OFF.
(You can read more about how to use this block here)
Long pressing and holding the icon section of block enables the drag mode for the block.
In this example, the LED (Orange) block is copied.
You can long-press the non-icon section of the block above or below which the block is to be pasted as shown.
Here, you can press the Paste Above or Paste Below option to paste above or below the selection respectively.
In this example, the Delay block is selected.
In this example, the Paste Below option is pressed and the the copied block is pasted as shown below.
The LED (Orange) block is pasted below the previously selected Delay block