microsoft / pxt-maker

MakeCode target for "Maker" boards (beta)
https://maker.makecode.com/
Other
120 stars 82 forks source link

RGB+W NeoPixel strip error #299

Open jedgarpark opened 4 years ago

jedgarpark commented 4 years ago

Setting a NeoPixel strip to RGB+W seems to create errors in simulator and hardware.

strip.setMode(NeoPixelMode.RGBW)
let short = strip.range(0, 1)
let long = strip.range(2, 1)
short.setAll(0x0000ff)
long.setAll(0x00ff00)

This should show pixel 0 green, pixel 2 blue, but instead shows pixels 0-1 both blue.

https://forums.adafruit.com/viewtopic.php?f=64&t=163743