Create a Custom Avatar with the Micro:bit

In nature, fireflies flash and seem to magically synchronise with each other. You can read more about fireflies' synchronisation here ncase.me/fireflies

In this workshop you will code your micro:bit to behave like a virtual firefly and make a group art project. Your micro:bit will communicate with all the other micro:bits in the class using Bluetooth and they will all flash at the same time.

First, create a personal avatar to use as part of the project.

Step 1

Coding an avatar on the micro:bit is easy. Use the 'show LEDs' block. 

Here’s a simple one to get you started. It’s a musical note:

What could you use as your firefly avatar? A letter? A cross? A face? A pattern? A skull?

Step 2

Place your animation inside a forever block so it runs all the time.

Step 3

Download your code and test it on the micro:bit.