The ScratchX micro:bit extension lets you control your micro:bit wirelessly using Scratch programming blocks. You can use the tilt sensor or push buttons to design a whole new way of interacting with your Scratch projects. Use the LED matrix to display information or create light animations.

NOTE: The extension only works with Mac OS X at this time.

Getting Started

  1. Install the Scratch Device Manager for Mac.
  2. Download the scratch-firmware-combined.hex and copy it to the micro:bit using the USB cable.
  3. Launch the micro:bit extension on ScratchX.
  4. Click the "Connect" button in the Scratch Device Manager to connect to the micro:bit.

Examples

Buttons

Move and animate the Scratch cat by pressing the A and B micro:bit buttons.

Display

This simple example displays text or numbers on the micro:bit LED matrix.

Tilt

Move the fish around the screen using the micro:bit tilt sensor. Change the color effect of the fish by shaking the micro:bit.

Blocks

Do something when one (or any) of the buttons are pressed.

Do something when one of the pads (0, 1, 2) are connected to ground (GND).

Display text or numbers on the LED matrix. If you display individual letters or numbers, they will remain on the display until something else is written. Words or multi-digit numbers will automatically scroll across the display.

Set an individual LED on or off. The LED Matrix is laid out in a grid with 5 rows (x) and 5 columns (y).

Set all LEDs off (i.e. clear the display).

Do something when the micro:bit is physically shaken.

Get the current tilt angle of the micro:bit in degrees.