KRITSADA icon

Nanobit : Example display.Set_Pixel

KRITSADA | PRO | 03/18/20 07:30:56 AM UTC | 0 ⭐ | 811 👁️ | Never ⏰ | []
Python |

280 B

|

None

|

0 👍

/

0 👎

from microbit import *
while(1):
    for x in range(0,5):
        for y in range(0,5):
            display.set_pixel(x,y,9)
            sleep(100)
    for x in range(0,5):
        for y in range(0,5):
            display.set_pixel(x,y,0)
            sleep(100)

Comments