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.
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).
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.
The text code to write a dice program is really simple.
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!