Well, this has taken just about forever :)!!! Finally able to throw up a BMP file from a SDHC card (FAT32) onto a Mega Board GLCD. The bmp converter used, is the ImageConverter 565 V2.3. I think Evan has used used this converter in the past.
Still lots of work to be done on the library, but best throw it up in case something happens to the computer.
EDIT: Add attachments
EDIT-2: Delete zip folder, add back with GPL header for library
Nice one. I got ili9341 glcd with a card slot and will try soon wondering if the sd-mosi,miso,cs,sck need buffering for 3.3V. I wonder what can be done with a sd card slot, like I had a nextion display that was "programmed" via sd card and responded to print "line x,y,x2,y2" but Anobium got it now.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks. If you have one of those UNO shield type of touch displays, then it "probably" has dual voltage capability. On the back side you would see a AMS1117 3.3V regulator, and a couple of NXP HC245 level translator chips? I have one like this sitting on the desk, but have not had time to play with yet. http://www.gearbest.com/lcd-led-display-module/pp_180551.html
Either way, should be able to get you up and running with the sd card.
Do not know about the Nextion displays, or their programming. Have not developed too much on the writing to the sd, other than successfully testing the Write_Block (cmd24).
Please download the new sd_565.h library that follows and discard the old one.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Newly revised sd_565.h library has some vital fixes completed. The last library had poor to non-functioning Root Directory and File Data offset discovery routines.
The file discovery offsets and their glcd display have been verified with:
1. SanDisk 16GB sdhc FAT32 formatted card
2. Kingston 2GB sdsc FAT16 formatted card
The library is still very much in the beta phase, but with the Debug facilities and some determination, a result should be possible.
@Kent, my ili9341's are spi and "power" from 5V through on board regulator but the logic is 3.3 running through 4050 (non inverting inverter ..) powered from arduino 3.3v supply.
I have the same display on a pic with a 2 resistor dropper on each spi and that's ok so same for the sd card pins I guess but I seem to remember solder links....so many "the same" displays. Let you know when I "finish" latest ideas. I have not had joy with these. http://www.ebay.co.uk/itm/332062191948
your post arrived while I wrote mine
Last edit: stan cartwright 2017-08-16
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, this has taken just about forever :)!!! Finally able to throw up a BMP file from a SDHC card (FAT32) onto a Mega Board GLCD. The bmp converter used, is the ImageConverter 565 V2.3. I think Evan has used used this converter in the past.
Still lots of work to be done on the library, but best throw it up in case something happens to the computer.
EDIT: Add attachments
EDIT-2: Delete zip folder, add back with GPL header for library
Last edit: kent_twt4 2017-08-13
Nice one. I got ili9341 glcd with a card slot and will try soon wondering if the sd-mosi,miso,cs,sck need buffering for 3.3V. I wonder what can be done with a sd card slot, like I had a nextion display that was "programmed" via sd card and responded to print "line x,y,x2,y2" but Anobium got it now.
Thanks. If you have one of those UNO shield type of touch displays, then it "probably" has dual voltage capability. On the back side you would see a AMS1117 3.3V regulator, and a couple of NXP HC245 level translator chips? I have one like this sitting on the desk, but have not had time to play with yet. http://www.gearbest.com/lcd-led-display-module/pp_180551.html
Either way, should be able to get you up and running with the sd card.
Do not know about the Nextion displays, or their programming. Have not developed too much on the writing to the sd, other than successfully testing the Write_Block (cmd24).
Please download the new sd_565.h library that follows and discard the old one.
Newly revised sd_565.h library has some vital fixes completed. The last library had poor to non-functioning Root Directory and File Data offset discovery routines.
The file discovery offsets and their glcd display have been verified with:
1. SanDisk 16GB sdhc FAT32 formatted card
2. Kingston 2GB sdsc FAT16 formatted card
The library is still very much in the beta phase, but with the Debug facilities and some determination, a result should be possible.
Some of the references that I used during construction and continuing development:
The Physical Layer Simplified Specifications - SD Card Assoiciation
https://www.sdcard.org/downloads/pls/
AND:
http://www.tavi.co.uk/phobos/fat.html
https://www.pjgcreations.co.uk/moving-from-fat16-sd-to-fat32-sdhc-part-2-addressing-differences/
http://www.microchip.com/forums/m711229.aspx
http://elm-chan.org/docs/mmc/mmc_e.html
Last edit: kent_twt4 2017-08-16
@Kent, my ili9341's are spi and "power" from 5V through on board regulator but the logic is 3.3 running through 4050 (non inverting inverter ..) powered from arduino 3.3v supply.
I have the same display on a pic with a 2 resistor dropper on each spi and that's ok so same for the sd card pins I guess but I seem to remember solder links....so many "the same" displays. Let you know when I "finish" latest ideas. I have not had joy with these. http://www.ebay.co.uk/itm/332062191948
your post arrived while I wrote mine
Last edit: stan cartwright 2017-08-16