16 December 2016

I found today, on Christmas jumper day, I was caught short and couldn’t find a good jumper.

I spent 5 minutes and threw one together for fun with the BBC Microbit. Now it actually belongs to my lab-helper Helena, so I’ve just borrowed it for the day.

Microbit Christmas Jumper

Here is the code - it’s pretty simple:

```python from microbit import *

while(True):
    display.scroll("Merry Christmas! ****")
    display.show(Image.HAPPY)
    sleep(500)
    display.show(Image.HAPPY)
    sleep(500)
    display.show(Image.HAPPY)
    sleep(500)
    display.scroll("*^*^*^", delay=300)
    display.scroll("Ho! Ho! Ho!")
    display.scroll("*^*^*^*", delay=300)
    display.show(Image.XMAS)
    sleep(500)
    display.show(Image.XMAS)
    sleep(500)
    display.show(Image.XMAS)
    sleep(500)
    display.scroll("It's Christmas Jumper day. Have an awesome day. ****")
    display.show(Image.FABULOUS)
    sleep(500)
    display.show(Image.FABULOUS)
    sleep(500)
    display.show(Image.FABULOUS)
    sleep(500)
    # This is supposed to be a sleigh pulled by reindeer - not sure it worked....
    display.scroll(". . . . . . y¬ y¬ y¬ \__@[]/. . . . ***") ```

This was somewhat inspired by @Richard Hayler and his hat at the @Ham Coder Dojo.



Other places to find us