-
Notifications
You must be signed in to change notification settings - Fork 11
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
spi::SpiInterface::send_command
hangs since SSD1322 SPI doesn't support reading
#1
Comments
Sorry it's not working! There's been some discussion over on the Were you able to tell if it's just spinning in that loop, or if the Which crate are you using to get an implementation of |
Sorry for the bad response back. It is spinning in the loop; the I am using Can I give you any other information? |
I think this might be caused by mismatched assumptions between what The Despite the fact that the SSD1322 does not have a MISO line to return data back to the master, the As I mentioned previously, there has been some debate about whether There is a tracking issue for |
Tracking bugs on
|
Thanks for your answers. Unfortunately, the complex interplay between the rust type system and the full duplex SPI protocol makes this a bit too complicated for me to fully grasp. If I understand you correctly, there is no simple workaround for this issue when using |
Another problem I am experiencing is that each |
When trying out the basic example code (adapted for a raspberry pi), the program hangs at the call to
init
. Looking further, it seems every call tosend_command
hangs in the while loop preceded by this comment:The explanation can be found in the data sheet (e.g. http://www.newhavendisplay.com/specs/NHD-3.12-25664UCY2.pdf page 11): "Note: Read is not available in serial mode."
By commenting out the while loop, everything seems to work fine. I don't really know what the solution is, since that seems to non-standard SPI behavior. Perhaps it needs to implement another, more restricted SPI interface with no
send
function?The text was updated successfully, but these errors were encountered: