-
Notifications
You must be signed in to change notification settings - Fork 6
Updated examples to work with smaller screen better #6
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
Conversation
Could somebody please do a review on this? I would like it merged before I finish my guide. Thanks |
Summary of changes: |
👀 |
examples/ra8875_bmptest.py
Outdated
@@ -27,6 +27,9 @@ | |||
display.init() | |||
display.fill(WHITE) | |||
|
|||
def color555(self, rgb): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be renamed something like cast_to_565
or something similar. Compared to color565
the name suggests that it's converting to 555
.
Alternatively you could import color565
as color_565_from_24bpp
and then make your own color565
that does the appropriate conversion based on bpp? Not a deal breaker either way
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just went with convert_555_to_565()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks ;)
Updating https://github.com/adafruit/Adafruit_CircuitPython_RA8875 to 1.0.4 from 1.0.3: > Merge pull request adafruit/Adafruit_CircuitPython_RA8875#6 from makermelissa/master
Now that I have a smaller screen that I can experiment with, I have updated the examples so that text and images are centered on both the large and small screen.