mabiesen / microbit_pass_the_light

Microbit "firefly" project inspired by example provided in microbit documentation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

microbit_pass_the_light

Microbit "firefly" project inspired by example provided in microbit documentation.

Requirements:

  1. Multiple microbits (I used four)
  2. Micropython text editor compatible with microbit. I used Mu.

NOTE: code alteration is required for this code to work.

What it looks like in action:

The programmer assigns ordinal ids to the microbits via a variable. The program begins when microbit one puts out a message signaling for microbit two to flash. The microbit flashes and sends a signal to three, three sends a signal to four, and four sends a signal back to one.

The first signal begins when you press the 'a' button. Press it again at any time to add another firing sequence into the mix.

You can press the 'b' button at any time to light up all microbits at once. This has some pretty neat after effects as each microbit then tries to send out its reply signal : )

About

Microbit "firefly" project inspired by example provided in microbit documentation.


Languages

Language:Python 100.0%