---
# System prepended metadata

title: 41104B006 microbit 2

---

# 41104B006 microbit 2
```python=
from microbit import *
sleep_time = 300
led_value  = 9
while True:
    x0=0
    y0=0
    x=0
    for yi in range(5):
        y = y0+yi
        if x%5==0:
            for xi in range(0,5):
                x = x0+xi 
                display.set_pixel(x%5, y%5, led_value)
                sleep(sleep_time)
        elif x%5==4:
            for xi in range(1,6):
                x = x0-xi 
                display.set_pixel(x%5, y%5, led_value)
                sleep(sleep_time)
    display.clear()
    sleep(sleep_time)