Skip to content

Add support for 9-bit mode to displayio.FourWire #6114

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
Mar 5, 2022

Conversation

deshipu
Copy link

@deshipu deshipu commented Mar 4, 2022

If the command pin is None, that information will instead be
sent as a ninth bit in the SPI transactions.

Fix #6109

Note: I verified the code produces correct output, however, I can't test it with a real display until #6113 is fixed.

@deshipu
Copy link
Author

deshipu commented Mar 4, 2022

I tested it with an RH-112 display, but something is still off, I will work on this further.

@deshipu
Copy link
Author

deshipu commented Mar 4, 2022

IMG_20220304_190250

The code works fine, just needed some additional parameters for the Display.

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Cute display! Minor questions for you on this. Did you look in some ports to see if they support 9-bit writes? I feel like some SPI implementations may already.

@deshipu
Copy link
Author

deshipu commented Mar 4, 2022

Even if some platforms had support for 9-bit SPI, we would have to rearrange the bytes to insert the D/C bit anyways, so I see no advantage to using that.

@deshipu deshipu requested a review from tannewt March 4, 2022 19:43
If the ``command`` pin is None, that information will instead be
sent as a ninth bit in the SPI transactions.

Fix adafruit#6109
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

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

Thank you for the additional explanation!

@tannewt tannewt merged commit 08b44ea into adafruit:main Mar 5, 2022
@deshipu deshipu deleted the displayio-9bit branch March 5, 2022 07:43
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.

displayio support for 9-bit SPI
2 participants