SD Card - Multiple File Read
JohnC
Posts: 64
I'm working on a project where I need to simultaneously read from two files on an SD card. Reading alternates between files, and throughput is fast enough that there doesn't seem to be time to open and close each file in turn.
I briefly looked at FSRW a few nights ago, and learned that calling fat.popen() internally calls fat.pclose.
Is this possible?
I briefly looked at FSRW a few nights ago, and learned that calling fat.popen() internally calls fat.pclose.
Is this possible?
Comments
You may need 2 instances of the FSRW object to do it...
(see the last post for the latest version)
It's an extension for FSRW. It's usually meant for fast access to SWAP-files where each byte (or more) of the file can be accessed by giving it's address inside of the file. Please note the preconditions.
With this you can read/write from/to 4 files simultaneously (each slot can access a different file) and the original FSRW functions can still be used for full SD card access.
Hope it helps.