I see now what you are talking about and have picked up a few of the commands for the ALFAT. I can initialize an SD card, initialize the files and folders (somewhat), and open a file and assign a handle to it.
But now I am stuck at how to read and write to the file. For example I put a file on the SD card named “ANALOGG.CSV” and am able to open it for reading/writing but I am confused as to how I can get/put important information on the SD card. So in the ALFAT Explorer I have:
But this file is pre-loaded with a bunch of different values that I want to read. Am I doing something wrong here or can ALFAT not read the contents of my file?
Also, if you could clarify the write process for me that would be awesome. This is what I entered into the ALFAT Explorer:
$10 (at this point I pressed “Read Line” multiple times before realizing I was doing something wrong)
$00001010 (I wanted to write 10 numbers (1100110011) so I figured 00001010 is binary for 10)
!02 (I tried to “Read Line” again)
After this I tried to read it back and had moderate success:
R 1x>00001010 (again I figured 00001010 is binary for 10 and that is how many characters I wanted read back to me)
Success! Until I tried to close the file:
I’m not exactly sure how many X’s but it’s a lot (I can’t copy and paste from the text box). So it looked like I successfully wrote to the file and read it back. Except that the file I was opening already had information in it that I would rather read and write over.
Any guidance here would be appreciated.