SPI and LedControl conflict

Hi everybody,

I am trying to incorporate 2x7segment displays to a current project and I am having some issues with conflicts in the libraries. I have the displays working correctly and counting to 99 in their own sketch using a MAX7219 and the ledcontrol library. When I integrate that sketch with my current project sketch I lose all control. I have isolated the issue to the SPI.begin() call.

I currently need this function call to communicate with a MAX31865. When I comment this line out my display works but I lose comms to the MAX31865. Is there a workaround to get them both working?

Thanks in advance.

Ive come up with A solution although I'm not too sure how well it will work in the long run. I call SPI.end() first, then write to display using lc.setdigit() and then call SPI.begin() to restart the spi.

I do this once per second. Does anyone see a problem with doing it like this?

Without your code we cannot see what is wrong with it, as this obviously ain't the correct way of doing it.