More micro:bits

We had a play with our micro:bits again this week. This time we decided to experiment with the code and see what we could come up with.

This is the visual code for an interactive badge that responds to button presses.

Screen Shot 2016-03-04 at 14.54.46

If we were to write this code as text it would look like this. The 1’s and 0’s tell the micro:bit which LEDs to turn on(1) or off(0).

Screen Shot 2016-03-04 at 14.55.12

The micro:bit makes it really easy for us to make other things too. Darcey found out that this code would create a happy dice.

Screen Shot 2016-03-04 at 14.53.45

The text code to write a dice program is really simple.

Screen Shot 2016-03-04 at 14.56.22

The output is a fully working LED dice, so we can easily use our micro:bits as a replacement next time we can’t find the snakes & ladders dice at home!

Leave a comment