Lernpfad:Einführung in den micro:bit/7: Unterschied zwischen den Versionen

Zur Navigation springen Zur Suche springen
Keine Bearbeitungszusammenfassung
Zeile 11: Zeile 11:


while True:
while True:
x = random.randint(0, 4)
  x = random.randint(0, 4)
y = random.randint(0, 4)
  y = random.randint(0, 4)
display.set_pixel(x, y, 6)
  display.set_pixel(x, y, 6)
sleep(200)
  sleep(200)
    display.clear()
  display.clear()
</syntaxhighlight>
</syntaxhighlight>