Ucglib.h and SPI.h interfering

Using an esp32 C3 to drive a display with ucglib.h. at the same time I'm controlling some attenuators using SPI.h - different CS lines.

All works fairly well but I want to slow down the SPI clock for the attenuators.

So, I use SPI.beginTransaction(SPIsettings(1000000, MSBFIRST, SPI_MODE0));
and SPI.endTransaction();

As soon as I introduce these the ucglib control of the display fails regardless of what settings I have in the SPIsettings.

The two libraries seem to be upsetting each other. Any way round this?

Don't have enough pins on the C3 to implement 2 busses.

Does the attenuator send data back? Does it use MISO? Some SPI devices don't honor CS and will assert MISO regardless.

No data coming back.

Note that its all actually working its just that Id like to slow down the SPI but as soon as I set it to anything there seems to be some conflict. Default SPI clock is 10MHz (Measured) even if I try to set it to 10MHz it all goes wrong.

Ah, I missed that. I'd inspect the source code for that library and see if your settings are conflicting with how it wants to be configured.