I want to use both hardware SPI to talk to an SD card and Ethernet, as well as a software SPI to simulate an external device to test my shield plugged into a Robotdyn MEGA2560 + Ethernet +SD. The attached block diagram should help you visualize this.
I have my software working (including Html and javascript server, and reading an SD card) , but not my shield which interfaces to the external device. So I need to add Software SPI to simulate the external device and plug the software spi pins back into the external device connector.
This would help me - an example showing software SPI reading and writing...... AND uses the hardware SPI to read the SD card and Ethernet. I have not seen an example which does both in the same sketch.
Previously I used the SD.h (based on a 10 year old version of SDFat) and added the DigitalIO.h ( has SoftSPI.h ) libraries, but they had conflicts in naming, hence my interest in this new Beta release of SdFat that Bill Greiman says he plans to release soon.
Yes I did try the very latest SdFat Beta library. I chose this topic because its subject matched SdFat Beta. I will go post a new topic, perhaps that will help.
The latest commit of greiman/SdFat on github is from March 2019. So that should basically contain the changes in the 2011 beta.
I'm not quite sure how you ended in this thread (possibly a google for 'arduino sd software SPI') but I think that you're on the wrong track with the SD library A quick google for arduino software spi gives gives you a few options to look at for software SPI.