Skip to content

Linted #26

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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