Control Scratch by micro:bit over USB cable
Switch branches/tags
Nothing to show
Clone or download
Latest commit a1c20c4 May 12, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Create LICENSE Apr 27, 2017
README.md New video URL May 12, 2017
scratchbit.py some modifications May 10, 2017
scratchbitdemo.sb2 init Apr 23, 2017

README.md

Scratchbit

This is a micropython script for micro:bit made by Ákos Vecsei

With this script you can use your micro:bit as a Scratch (developed by MIT) controller.

DEMO VIDEO

What do you need?

A micro:bit with USB cable.

How can you install it?

  1. Clone this repo or simple download the scratchbit.py script:

    git clone https://github.com/vecsei/Scratchbit.git
    

    So now you have the scratchbit.py inside the Scratchbit folder

  2. Flash it to the micro:bit.

  3. Start Scratch

  4. Add the built-in PicoBoard extension.

  5. When "C" is displayed on the micro:bit, the connection was established.

  6. You can download the scratchbitdemo.sb2 or use the online version to try it.

How can you use it?

  • The resistance-A in Scratch represents the press of the "A" button on the micro:bit.

  • The resistance-B in Scratch represents the press of the "B" button on the micro:bit.

  • The resistance-C in Scratch represents the X direction tilt of the micro:bit.

  • The resistance-D in Scratch represents the Y direction tilt of the micro:bit.

  • The light in Scratch represents the value of the micro:bit's P0 pin.

  • The sound in Scratch represents the value of the micro:bit's P1 pin.

  • The slider in Scratch represents the value of the micro:bit's P2 pin.

Scratch micro:bit
resistance-A press of the "A" button
resistance-B press of the "B" button
resistance-C X direction tilt
resistance-D Y direction tilt
light P0 pin
sound P1 pin
slider P2 pin