Science Oxford Logo

CCC - Pet Project

Resources for the 'Pet Project' Creative Computing Club.

This page recaps what we discussed as a group, including creating a heartbeat.

To skip to the cyber pet starter code, and ideas for your next steps, click here.

Creating your first program

Open the Mu editor on your computer. If there is code on the screen, start a New program from the menu.

Mu menu, highlighting 'New'

Type these two lines of code into your blank window:

from microbit import *
display.show(Image.HAPPY)

Plug your micro:bit into the computer, then click Flash:

Mu menu, highlighting 'Flash'

Some code should be running on your micro:bit!

If you get a message scrolling across the micro:bit's screen, this is an error message!

Debug your code, then click Flash again to test your changes.

Once your code is working - change it!

Instead of HAPPY, can you think of another Image the micro:bit could show on its display?

Creating a heartbeat

TO BE ADDED - see presentation for now.