Hi, does anyone have an example of how to use the SdFat library with the Teensy 4.1's built-in SD card slot? This is related to my last question, but I think this specific piece of information may be the key to getting my project working, so I thought it was worth a separate post.
In the past I've just used the Teensy's SD.h library, and it has worked fine for everything I've wanted to do. Now however I need to use a library that is built around the SdFat library, so I need to switch over to that unless I want to rewrite a ton of library code.
As far as I can tell, these libraries have extremely similar functionality, most of the difference being some small points of syntax, which is where I'm getting tripped up. The SdFat library has an example for Teensy, but frankly it's a convoluted mess, and I can't for the life of me tell what it's even attempting to demonstrate ��. A clear example for how to open the SD card on the Teensy 4.1 would be extremely helpful to me, and I think to others as well.
TLDR: All I need to know is how to properly replicate the "SD.begin(BUILTIN_SDCARD)" function using the SdFat library, and the rest will fall into place. Can anyone share this one line of code?
In the past I've just used the Teensy's SD.h library, and it has worked fine for everything I've wanted to do. Now however I need to use a library that is built around the SdFat library, so I need to switch over to that unless I want to rewrite a ton of library code.
As far as I can tell, these libraries have extremely similar functionality, most of the difference being some small points of syntax, which is where I'm getting tripped up. The SdFat library has an example for Teensy, but frankly it's a convoluted mess, and I can't for the life of me tell what it's even attempting to demonstrate ��. A clear example for how to open the SD card on the Teensy 4.1 would be extremely helpful to me, and I think to others as well.
TLDR: All I need to know is how to properly replicate the "SD.begin(BUILTIN_SDCARD)" function using the SdFat library, and the rest will fall into place. Can anyone share this one line of code?