I'm using the Adafruit GFX/TFT libraries. I've included SPI.h.
How do I know if I'm using hardware or software SPI?
Which MCU are you using and which pins on the MCU are you using?
You may find this old thread helpfulhttps://forum.arduino.cc/t/spi-hardware-vs-software-im-lost-how-it-is-different/850523/4
Thanks for the replies,
I should have given more info. It's a mega 2560. PIn 51-COPI ( get used to it ) only, pin 52 SCK.
I'll check out the thread
If using the natural SPI pins of the MCU then its hardware SPI.
Great,
Thanks
You will need to look at the specific library being used, but generically if you need to specify the SPI pins in the constructor it is likely software SPI is being used, while a constructor with no pins specified would tend to default to hardware SPI, unless the library is specifically intended for software SPI.
Note that it is usually possibly to run software SPI on the same pins used for hardware SPI, although that would be unusual.
Yea, I was trying to make the answer simple. I figured the complications of SPI would crop up in time.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.