Skip to content

Commit

Permalink
fix colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Adafruit Adabot committed Sep 15, 2019
1 parent 0cd0e69 commit b8349fe
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 @@ -181,7 +181,7 @@ def image(self, img, rotation=0):
.format(self.width, self.height))
# Grab all the pixels from the image, faster than getpixel.
r, g, b = img.split()
pixels = Image.merge("RGB",(b,g,r)).convert("BGR;16").tobytes()
pixels = Image.merge("RGB",(b,r,g)).convert("BGR;16").tobytes()
self._block(0, 0, self.width-1, self.height - 1, pixels)

#pylint: disable-msg=too-many-arguments
Expand Down

0 comments on commit b8349fe

Please sign in to comment.