Closed MichaelLachmann closed 2 years ago
The only place SPI comms are done is in the MAX72xx library. Parola uses this library and does nothing on its own and then only if you call animate(), so I am not sure how omitting the Parola portion makes it work differently as you have not shown the code.
Suspending the display stops the updates but I am not sure where it stops all comms to the displays. In any event you seem to have structured ADC SPI transaction as an 'atomic' piece of code, so nothing else should be trying to use the SPI interface while that is going on.
I don't have much suggestion other than to try:
Closed as no response from OP
I'm using the latest version of the API with an ESP8266.
In parallel I need to read from an ADC which is also connected to the same SPI as the display is. However there are different CS-pins for the display and the ADC. I do not have enough free pins to use a software simulated spi for any of the devices.
What I've tried was to suspend the display before reading from the ADC and resuming after that. But that does not work. This is the code I'm using:
but gas and light values are both zwo. If I ommit the whole display code it works, it also works If I do not use the MD_Parola API and only the MD_MAX72xx.
Do you have a suggestion on how to do that correctly?
Thanks, Michael