Open
Description
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 to send_command
hangs in the while loop preceded by this comment:
// The SPI device has FIFOs that we must ensure are drained before the bus will
// quiesce. This must happen before asserting DC for a command.
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?
Metadata
Metadata
Assignees
Labels
No labels