SD Card Folder Asscess
dermot
Posts: 26
Hi,
SD card driver that I am using is Kye's as described in an006. I want to be able to navigate into folders from the root directory and back again.
Lets say I have a folder with no sub-folders in the root directory called Drills.
Why wont the code: sd.changeDirectory("\Drills") assess the folder Drills for me.
SD card driver that I am using is Kye's as described in an006. I want to be able to navigate into folders from the root directory and back again.
Lets say I have a folder with no sub-folders in the root directory called Drills.
Why wont the code: sd.changeDirectory("\Drills") assess the folder Drills for me.
Comments
SOLVED
I have a 8digit number which I need to extract all digits one at the time? Is this possible?
Tried using fat.fileseek(0) to navigate to file position. But cant read digit back.
fat.fileSeek(0) 'Move to position 0
count:=fat.readByte 'Assign count equal byte at that position
convertDigits 'Call convert Digits Routine
value:=result 'Assign value equal the result
dec(value) 'To display on VGA
Should this give me the 1st digit in decimal form value then? As it does not seem to work.
To read just one digit, you could try
fat.fileSeek(0)
dec( convertDigits(1) )