---
# System prepended metadata

title: 41104B006 L型LED

---

# 41104B006 L型LED
```python

from microbit import *
s =500
l = 9
l2 = 0
while True:
    for i in range(5):
      sleep(s)
      for j in range(i+1):
        x1=4-j;
        y1=i;
        x2=4-i;
        y2=j;
        if (i!=j):
          display.set_pixel(x1%5, y1%5, l);
          display.set_pixel(x2%5, y2%5, l)
        else :
          display.set_pixel(x1%5, y1%5, l)
    for i in range(5):
      sleep(s)
      for j in range(i+1):
        x1=j;
        y1=4-i;
        x2=i;
        y2=4-j;
        if (i!=j):
          display.set_pixel(x1%5, y1%5, l2);
          display.set_pixel(x2%5, y2%5, l2)
        else :
          display.set_pixel(x1%5, y1%5, l2)

