Issues Using Multiple SPI Buses w/ HW-CS
Posted: Wed Jul 05, 2017 9:22 pm
Hello!
I have two libraries that run off of the same MISO, MOSI, and SCK: A ST7735 TFT library that I wrote and the built-in SPI SD library.
With some modification to both, I was able to get them to run side-by-side. However, for some reason, changing the SPI speed or setting "useHwCs" on the LCD library one breaks the SD Library ("read/write failed", "could not mount", etc) despite them being on different buses (VSPI and HSPI, respectively).
This is super annoying because it makes the LCD run at the SD's speed (wayyyy to slow to refresh a screen in a reasonable amount of time )
What's the cause of this? How can I work around it?
I have two libraries that run off of the same MISO, MOSI, and SCK: A ST7735 TFT library that I wrote and the built-in SPI SD library.
With some modification to both, I was able to get them to run side-by-side. However, for some reason, changing the SPI speed or setting "useHwCs" on the LCD library one breaks the SD Library ("read/write failed", "could not mount", etc) despite them being on different buses (VSPI and HSPI, respectively).
This is super annoying because it makes the LCD run at the SD's speed (wayyyy to slow to refresh a screen in a reasonable amount of time )
What's the cause of this? How can I work around it?