Skip to content

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

Merged
merged 9 commits into from
Mar 1, 2019

Conversation

makermelissa
Copy link
Collaborator

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.

@makermelissa makermelissa requested a review from a team February 25, 2019 05:42
@makermelissa
Copy link
Collaborator Author

Could somebody please do a review on this? I would like it merged before I finish my guide. Thanks

@makermelissa
Copy link
Collaborator Author

Summary of changes:
Images and text are now centered and fit on both resolutions
Fixed Coloration of 24-bit BMP example
Fixed 16-bit BMP decoding in BMP example

@siddacious
Copy link
Contributor

👀

@@ -27,6 +27,9 @@
display.init()
display.fill(WHITE)

def color555(self, rgb):
Copy link
Contributor

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

Copy link
Collaborator Author

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()

@makermelissa makermelissa requested a review from siddacious March 1, 2019 19:23
Copy link
Contributor

@siddacious siddacious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks ;)

@siddacious siddacious merged commit 0de3c0c into adafruit:master Mar 1, 2019
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Mar 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants