Skip to content

Add RGB565 format support #48

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 7 commits into from
Dec 19, 2022
Merged

Add RGB565 format support #48

merged 7 commits into from
Dec 19, 2022

Conversation

philsuth
Copy link
Contributor

@philsuth philsuth commented Dec 2, 2022

Here's an RGB565 format. Tested on a Beaglebone Black under python3, so it's possible there are CircuitPython incompatibilities.

@tekktrik tekktrik requested a review from a team December 7, 2022 01:08
Copy link
Contributor

@FoamyGuy FoamyGuy left a comment

Choose a reason for hiding this comment

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

This new format looks good to me. Thanks for the addition @philsuth.

I don't think I have access to hardware that can use this specific format but I did try out a few things. I tested this branch using a NeoTrellis M4 with the Pixel_Framebuf to validate there are no breaking changes from this PR, everything is working as expected.

I also tested adafruit_framebuf.RGB565Format.color_to_rgb565() function in the REPL and confirmed a few different color value inputs created the expected outputs, I used an online converter that supports 565 format to compare to.

@FoamyGuy FoamyGuy merged commit bd6d52d into adafruit:main Dec 19, 2022
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 20, 2022
Updating https://github.com/adafruit/Adafruit_CircuitPython_LC709203F to 2.2.10 from 2.2.9:
  > Merge pull request adafruit/Adafruit_CircuitPython_LC709203F#21 from dhalbert/esp32-s3-retries
  > Add .venv to .gitignore

Updating https://github.com/adafruit/Adafruit_CircuitPython_TLC59711 to 2.0.9 from 2.0.8:
  > Merge pull request adafruit/Adafruit_CircuitPython_TLC59711#22 from tcfranks/main
  > Add .venv to .gitignore
  > Update .pylintrc for v2.15.5
  > Fix release CI files
  > Update pylint to 2.15.5
  > Updated pylint version to 2.13.0
  > Switching to composite actions

Updating https://github.com/adafruit/Adafruit_CircuitPython_Wiznet5k to 1.12.17 from 1.12.16:
  > Merge pull request adafruit/Adafruit_CircuitPython_Wiznet5k#76 from BiffoBear/Rename_example_to_prevent_clash_with_pytest

Updating https://github.com/adafruit/Adafruit_CircuitPython_framebuf to 1.5.0 from 1.4.14:
  > Merge pull request adafruit/Adafruit_CircuitPython_framebuf#48 from philsuth/rgb565
  > Add .venv to .gitignore
  > Update .pylintrc for v2.15.5
  > Fix release CI files
  > Update pylint to 2.15.5
  > Updated pylint version to 2.13.0
  > Switching to composite actions

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
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