Skip to content

Commit

Permalink
Update rgb.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaByte authored May 6, 2021
1 parent d63cae5 commit a369264
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adafruit_rgb_display/rgb.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def image(self, img, rotation=None, x=0, y=0):
)
)
if numpy:
pixels = list(image_to_data(img))
pixels = bytes(image_to_data(img))
else:
# Slower but doesn't require numpy
pixels = bytearray(imwidth * imheight * 2)
Expand Down

0 comments on commit a369264

Please sign in to comment.