BIRS Lab #2 // Konrad Krawczyk

Use the sensors

The accelerometer was something I could use during the Easter egg snake game. Later on, I tried out various features, mostly focusing on screen input and sound interaction. I worked with Python right from the start, as I find GUI-based programming interfaces somewhat counterintuitive.

Create an bio-inspired interaction

Diana and I got inspired by fireflies. In short, fireflies communicate through light impulses (almost like in Morse code) and these signals spread out to other colonies. 

We found an example from the documentation website and followed it through. 

There were some variables we decided to change. For example, a regular button push by default would make all the displays in the vicinity blink, except the one on the device itself. We fixed it by adding two lines to the Python code, so that on button pressed all the LEDs would light up.

Video:

Untitled4

Code:

https://microbit-micropython.readthedocs.io/en/latest/tutorials/radio.html

Leave a Reply