Created Thu, 18 Oct 2012 05:54:11 +0000 by iosas
Thu, 18 Oct 2012 05:54:11 +0000
hi, Im trying to load a .raw file from the SD card using the SD library. I use a ITDB02 display and want display some bitmaps converted to the .raw format. Now is my question it is possible to open such a format with the commands from the SD library. And my secound question is if someone can get my a example how to to this or know a tutorial, then I'm just a beginner. I would be realy cool if somebody can help me.
At my actually sketch I can not open the .raw file on the sd with the sd.open() command.
Thu, 18 Oct 2012 20:43:25 +0000
Short answer: Yes, and no.
Long answer: Yes, but you have to code it yourself. The SD library deals with bytes, so any processing or combining of bytes needs to be done by you. This page tells you a lot about the RAW format ([url]http://docs.oracle.com/cd/B28359_01/appdev.111/b28414/ap_imgraw.htm[/url]) but since it's RAW you get direct access to the data (after the header has been read, that is).
I guess there's a headerless version, since the name defies the use of any header. :)
Thu, 18 Oct 2012 20:50:16 +0000
What do you mean with "your current sketch cannot open a .raw file"? The library can open any file on the SD card, as long as the card is formatted correctly and the file follows the rules for said filesystem. If your filename is longer than 12345678.123 it will be "unreadable" using the long filename (...well, sort of).
To be safe, only use upper caps and maximum 8.3 letters in your filenames.
Fri, 19 Oct 2012 05:47:00 +0000
Thank you for the answer. I think I will have a problem with the names of my .raw files. Hopefuly its only this reason why nothing is working. I will try it later.
Yes, I did all the codeding to deal with the bytes and to get them on the ITDB02.
Tue, 11 Dec 2012 23:33:25 +0000
Did you get this working? Is there any chance you can post the code or a link to code? I've seen reference to people having done this but no code posted. It would be nice not to have to reinvent the wheel.