Skip to content

Commit e40594c

Browse files
Fixing RGB order on Keybow 2040, and fixing import in rainbow example.
1 parent 9993369 commit e40594c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

adafruit_is31fl3731/keybow2040.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def pixelrgb(self, x, y, r, g, b, blink=None, frame=None):
5353
"""
5454
x = (4 * (3 - x)) + y
5555

56-
super().pixel(x, 0, g, blink, frame)
57-
super().pixel(x, 1, r, blink, frame)
56+
super().pixel(x, 0, r, blink, frame)
57+
super().pixel(x, 1, g, blink, frame)
5858
super().pixel(x, 2, b, blink, frame)
5959

6060
# pylint: disable=inconsistent-return-statements

examples/is31fl3731_keybow_2040_rainbow.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import math
2020
import board
2121

22-
import adafruit_is31fl3731
22+
from adafruit_is31fl3731.keybow2040 import Keybow2040 as Display
2323

2424
# pylint: disable=inconsistent-return-statements
2525
# pylint: disable=too-many-return-statements
@@ -64,7 +64,7 @@ def hsv_to_rgb(hue, sat, val):
6464
i2c = board.I2C()
6565

6666
# Set up 4x4 RGB matrix of Keybow 2040
67-
display = adafruit_is31fl3731.Keybow2040(i2c)
67+
display = Display(i2c)
6868

6969
step = 0
7070

0 commit comments

Comments
 (0)