My week with Micro:Bit

10 thoughts
last posted Jan. 18, 2016, 11:01 p.m.

1 earlier thought


Project 1 - Awesome hearts

As I mentioned the first thing I wanted to do was something nice for the next person that will host Mei-Xiu. What could be nicer than a beating heart? With trial and error I found the HEART and HEART_SMALL image resources (I was still having trouble with the REPL at the time and hadn't found the documentation yet), but I couldn't figure out if I could animate swapping between them using a ready function. So I just animated them myself to make the heart beat.

I wanted to do something with the buttons as well, so I added an silly message to be displayed when each button is clicked. Clicking both buttons at the same time gets you out of the program!

Here is a short demonstration video, and the code can be found here.

8 later thoughts