Hi I'm trying to convert a large sketch (30+k) on an UNO from the Standard SD to the Sdfat Library because I need to be able to rename some files periodically. I'm hoping to save some space in the process.

Unfortunately my SD based sketch, which is a mix of data logger and web server, uses the following snippet code to first trap a '$' sign in the HTML file being sent out for a replacable value

c = outputFile.read(); //get the next one to determin which number to send j = outputFile.parseInt(); //get next char which should be pointer to value & convert to No

to work out which number to send out to the web page. Trouble is I don't see the equivalent of the 'parseInt' functionallity in SdFat. Ultimately 'j' needs to get up to two digits so I need to do more than just read the the next charachter in the the 'outputFile'.

c = outputFile.read(); //get the next one to determin which number to send j = outputFile.parseInt(); //get next char which should be pointer to value & convert to No

to work out which number to send out to the web page. Trouble is I don't see the equivalent of the 'parseInt' functionallity in SdFat. Ultimately 'j' needs to get up to two digits so I need to do more than just read the the next charachter in the the 'outputFile'.

When you were on google code, there was an very handy doxygen user-guide, any plans to have an updated version of that on your git repository?

Regards,

Graham

UTFT_SdRaw now included in library manager!! High speed image drawing from SD card to UTFT displays for Mega & DUE.UTFT_GHL - a VASTLY upgraded version of UTFT_CTE. Coming soon to a TFT near you! Shipping April 1 2016!

UTFT_SdRaw now included in library manager!! High speed image drawing from SD card to UTFT displays for Mega & DUE.UTFT_GHL - a VASTLY upgraded version of UTFT_CTE. Coming soon to a TFT near you! Shipping April 1 2016!

I'm probably getting the syntax of SdFat wrong but where is not obvious

First try running this program that tests parseInt. It works for me so let's make sure it works in your setup. I have changed the chip select pin to 4 and tested it with an Ethernet shield. I also attached the program as a file. You will need to change the file type from .txt to .ino.

Interestingly I got the Stream test to work first time with the original SdFat using IDE 1.0.5

I then went back to my sketch and discovered some syntax problems and got that working as well using the original SdFat under 1.0.5

I then moved on to IDE 1.0.6 and the compile fell over on the parseInt again. Dragging the first beta of SdFat into the 1.0.6 libraries allowed the sketch to compile albeit that it is now 26700 bytes as opposed to 26500 bytes under 1.0.5. Both a lot better than 30100bytes under 1.0.4 with the standard SD.

At what point do you think that you will have finished the Beta of the new SdFat?