Skip to content

Commit

Permalink
Merge pull request #26 from adafruit/linting
Browse files Browse the repository at this point in the history
Linted
  • Loading branch information
evaherrada committed Sep 28, 2021
2 parents 318a171 + f66037a commit 14865da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/ra8875_bmptest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import digitalio
import board

import adafruit_ra8875.ra8875 as ra8875
from adafruit_ra8875 import ra8875
from adafruit_ra8875.ra8875 import color565

try:
Expand Down Expand Up @@ -82,7 +82,7 @@ def draw(self, disp, x=0, y=0):
break
if self.bpp == 16:
color = convert_555_to_565(line_data[i] | line_data[i + 1] << 8)
if self.bpp == 24 or self.bpp == 32:
if self.bpp in (24, 32):
color = color565(
line_data[i + 2], line_data[i + 1], line_data[i]
)
Expand Down
2 changes: 1 addition & 1 deletion examples/ra8875_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import digitalio
import board

import adafruit_ra8875.ra8875 as ra8875
from adafruit_ra8875 import ra8875
from adafruit_ra8875.ra8875 import color565

BLACK = color565(0, 0, 0)
Expand Down

0 comments on commit 14865da

Please sign in to comment.