Skip to content

spi::SpiInterface::send_command hangs since SSD1322 SPI doesn't support reading #1

Open
@kalj

Description

@kalj

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions