Closed
Description
The following code seems OK on V1, but hangs V2. Inserting sleeps makes it work
#without the sleeps this hangs on V2
#no need to connect neopixels
from microbit import *
import neopixel
display.show("S")
np = neopixel.NeoPixel(pin0, 5)
np[0] = (32, 0, 0)
np.show()
#sleep(100)
np.clear()
#sleep(100)
np[1] = (0, 32, 0)
np.show()
while True:
display.show("W")
sleep(1000)
Metadata
Metadata
Assignees
Labels
No labels