Closed tannewt closed 4 years ago
Looks good. Also tested. Grabbed PR code, mpy-crossed it, and used on Itsy M4 with CP 4.1.2.
Adafruit CircuitPython 4.1.2 on 2019-12-18; Adafruit ItsyBitsy M4 Express with samd51g19
>>> import board
>>> import neopixel
>>> pixels = neopixel.NeoPixel(board.D10, 8, pixel_order=neopixel.GRBW)
>>> pixels.fill(0xADAF00)
>>> pixels.brightness = 0.1
>>> pixels[2] = 0xff0000
>>> pixels[4] = 0x00ff00
>>> pixels[6] = 0x0000ff
>>> pixels.brightness
0.1
>>> pixels[4]
(0, 255, 0, 0)
>>>
Reverts adafruit/Adafruit_CircuitPython_NeoPixel#59
This causes hard faults with
_pixelbuf
on 4.x. We'll need to wait on this until 5.0.0 is stable with the new API.