adafruit / Adafruit_CircuitPython_seesaw

seesaw helper IC driver for circuitPython
MIT License
62 stars 36 forks source link

Fix white channel getting set 0. #40

Closed caternuson closed 5 years ago

caternuson commented 5 years ago

Fixes #32. I went with @EricGallimore 's suggestion.

Tested with Crickit HAT on RPi:

pi@crickit:~ $ python3
Python 3.5.3 (default, Sep 27 2018, 17:25:39) 
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import board
>>> from adafruit_seesaw.seesaw import Seesaw
>>> from adafruit_seesaw.neopixel import NeoPixel
>>> pixels = NeoPixel(Seesaw(board.I2C()), 20, 8, bpp=4, pixel_order=(1, 0, 2, 3))
>>> pixels.fill(0)
>>> pixels.fill((0,0,0,255))