BlocosIA Wiki Editor

micro:bit

LED screen, buttons, accelerometer, temperature and pins.

Open python.microbit.org, connect the board and click "Send to micro:bit" (this installs MicroPython). Then connect here by USB.

To use it: in the editor, click "Extensions" (bottom corner) and add "micro:bit".

Stack

show text ( )

Does an action. Snap it below another block.

Stack

show image [heart]

Does an action. Snap it below another block.

Stack

light LED x: ( ) y: ( ) brightness ( ) (0–9)

Does an action. Snap it below another block.

Stack

clear screen

Does an action. Snap it below another block.

Stack

play tone ( ) Hz for ( ) secs

Does an action. Snap it below another block.

Hat

when button [A] pressed

Starts a script when this happens.

Hat

when micro:bit [shaken]

Starts a script when this happens.

Boolean

button [A] pressed?

Answers true or false. Use it in "if", "repeat until" and "wait until".

Reporter

acceleration [x]

Gives a number or text. Put it inside a round slot.

Reporter

micro:bit gesture

Gives a number or text. Put it inside a round slot.

Reporter

temperature (°C)

Gives a number or text. Put it inside a round slot.

Reporter

light level (0–255)

Gives a number or text. Put it inside a round slot.

Stack

pin [P0] [on]

Does an action. Snap it below another block.

Stack

pin [P0] with intensity ( ) (0–1023)

Does an action. Snap it below another block.

Reporter

value of pin [P0] (0–1023)

Gives a number or text. Put it inside a round slot.