-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Added option to enable toggling CS between init commands #1685
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 emai 8000 ls.
Already on GitHub? Sign in to your account
Conversation
these displays tend to want CS toggled before each command - i'd make it the default behavior rather than the exception |
Ok thanks. Easy enough change. |
Should I also set it to enabled for the PyPortal, Hallowing, and PyBadge? Those are in the board.c files for each. |
yeah, i think it should always do that - its the expected behavior, in fact it may be one of the reasons i've seen gamma not always set. |
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.
Do any displays need this set to False? Why not just always do it when using FourWire?
Yeah, I can go through and remove the option now. Originally added when I thought it would default to false. |
Ok, this has been cleaned up so that it always has the toggle happen. |
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.
Should the CS toggle be in send when command is true instead of the init sequence? What happens when we send multiple commands in a row to set the memory window?
in arduino, traditionally we toggle CS on the beginning of every command |
Great idea. I'll go with that. It will make things even simpler. |
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.
Whoa! Very simple. Thank you!
The ST7789 requires the Chip Select to toggle High then Low between init commands in order to successfully initialize. I added an option to enable this which is off by default so it won't break any existing configurations. This is needed for the ST7789 displayio driver. This PR fixes #1684