Skip to content

Commit 7d20614

Browse files
authored
Merge pull request #8 from ladyada/main
permafix color order
2 parents b2e2c38 + a19f6fd commit 7d20614

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

adafruit_neokey/neokey1x4.py

Lines changed: 7 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,12 @@ 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,
61+
_NEOKEY1X4_NEOPIX_PIN,
62+
_NEOKEY1X4_NUM_KEYS,
63+
brightness=0.2,
64+
pixel_order=neopixel.GRB,
6165
)
6266
# set the pins to inputs, pullups
6367
for b in range(4, 8):

0 commit comments

Comments
 (0)