-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add polarity and phase to FourWire. #2730
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
It was fixed as 0/0 even though it used to get it from the current SPI state. This makes it more explicit with kwargs. Thanks to magpie_lark and kmatocha on the Adafruit Support forum for finding the issue: https://forums.adafruit.com/viewtopic.php?f=60&t=162515
|
@tannewt updated the displayio.FourWire command to include options for baudrate, polarity and phase, and to fix a bug where the polarity and phase were not updated properly: https://github.com/adafruit/circuitpython/commit/ab74f45bfbed78fd752e3ed3a12c01fa910ad672 Please note that these SPI bus settings only go into effect the first time displayio goes to access the SPI bus. (Meaning that if you query the settings without accessing the bus with displayio, you will likely see just the previous settings.) Here are the details of my setup Hardware: ItsyBitsy M4 Express Connections: Display VCC and Gnd connected to 3.3V and Ground of ItsyBitsy M4. Here is the sample code that I used. This works with a special UF2 that @tannewt created for me and will go into the pull request. |
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 to me, I remember this issue from an STM32 settings problem where the default was "1" and never overwritten. Nice to see it more explicitly defined here.
|
Builds now! |
It was fixed as 0/0 even though it used to get it from the current
SPI state. This makes it more explicit with kwargs.
Thanks to magpie_lark and kmatocha on the Adafruit Support forum
for finding the issue: https://forums.adafruit.com/viewtopic.php?f=60&t=162515