Skip to content

Commit 6a54017

Browse files
committed
permafix color order
1 parent b2e2c38 commit 6a54017

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adafruit_neokey/neokey1x4.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_NeoKey.git"
3131

3232
from micropython import const
33-
from adafruit_seesaw.neopixel import NeoPixel
33+
from adafruit_seesaw import neopixel
3434
from adafruit_seesaw.seesaw import Seesaw
3535

3636
try:
@@ -56,8 +56,9 @@ def __init__(
5656
) -> None:
5757
super().__init__(i2c_bus, addr)
5858
self.interrupt_enabled = interrupt
59-
self.pixels = NeoPixel(
60-
self, _NEOKEY1X4_NEOPIX_PIN, _NEOKEY1X4_NUM_KEYS, brightness=0.2
59+
self.pixels = neopixel.NeoPixel(
60+
self, _NEOKEY1X4_NEOPIX_PIN, _NEOKEY1X4_NUM_KEYS, brightness=0.2,
61+
pixel_order=neopixel.GRB
6162
)
6263
# set the pins to inputs, pullups
6364
for b in range(4, 8):

0 commit comments

Comments
 (0)