SimonWakley
Active member
I have been trying to get a handle on running more than one device on SPI when the settings are different. There are a few threads on this and it seems other people are having issues too. I have the Adafruit TFT using Paul's faster library and to works fine. I have a Wiznet 821io and as I said in my prior post, if I run either one, it works totally fine. The moment I try to enable them both it fails on tft.begin even if I try to set up a Settings and use that:
#define TFT_SPI_CLOCK 30000000
#define WIZNET_SPI_CLOCK 14000000
SPISettings Tft_Settings(TFT_SPI_CLOCK, MSBFIRST, SPI_MODE0);
SPISettings Wiznet_Settings(WIZNET_SPI_CLOCK, MSBFIRST, SPI_MODE3);
SPI.beginTransaction(Tft_Settings);
tft.begin();
I have also tried SPI.setCS but that is not recommended/intended to be used in sketches, and there is some complexity with the Tft as it also has a D/C line
I will include my project, but it's gotten kinds of messy with all the different things I have tried and possibly I have confused some setting and that's why it is not working.
If someone could assist me with this, I would be willing to remunerate - either Venmo or Bevmo
Thanks,
Simon
#define TFT_SPI_CLOCK 30000000
#define WIZNET_SPI_CLOCK 14000000
SPISettings Tft_Settings(TFT_SPI_CLOCK, MSBFIRST, SPI_MODE0);
SPISettings Wiznet_Settings(WIZNET_SPI_CLOCK, MSBFIRST, SPI_MODE3);
SPI.beginTransaction(Tft_Settings);
tft.begin();
I have also tried SPI.setCS but that is not recommended/intended to be used in sketches, and there is some complexity with the Tft as it also has a D/C line
I will include my project, but it's gotten kinds of messy with all the different things I have tried and possibly I have confused some setting and that's why it is not working.
If someone could assist me with this, I would be willing to remunerate - either Venmo or Bevmo
Thanks,
Simon