Skip to content

Missing SPI Transactions (Library Freezes With Other SPI HW Devices) #5

@glowdeck

Description

@glowdeck

This library was probably written before the new SPI transactions protocol was published, but without that protocol, this library only works if the display (in my case, the ILI9341) is the only hardware SPI device connected to the microcontroller. Add a second SPI hw device, and Pixels isn't able to reassert control of the SPI port.

The general method is pretty straightforward -

// Call this before you start an SPI read/write operation
SPI.beginTransaction(SPISettings(SPICLOCK, MSBFIRST, SPI_MODE0));
[Insert SPI communication code...]
SPI.endTransaction();

I was able to get the drawCompressedBitmap function working with SPI transactions, but I really need the fonts and text printing functionality to work too (and I had less luck with that). Any chance of updating the library to support SPI transactions?

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