HOME > > ELECTRONICS MAIN PAGE > > SUB-MENU: Alpha/graphics displays     StumbleUpon.Com Recommend to StumbleUpon

Using SD card on Hobbytronics/ Adafruit 1.8" TFT display (page- ec1tft-st7735-SDcard.htm)

Great easy to use, inexpensive, display for Arduino, Pi, BBC Micro:bit, etc.

Great little device! Vivid colors, Crisp image. Very readable.

I speak of the Hobbytronics 1.8" TFT display with microSD socket, £24 inc VAT, but excl p&p, July 15... and still £24 at 10/17!

A SIMILAR device is available from Adafruit, $20, 7/15. N.B. I have not "played" with one of those.

I did a separate page for getting started with Hobbytronics serial connected 1.8 inch TFT display. It tells you about connecting the three wires (power, ground, and one data line!), and takes you through a "Hello World" first program.

The device isn't "just" for microprocessors. It could be hooked up to a "big" computer, too, easily enough.

Using the card's SD card

There's a set of commands for the device, neatly set out at the Hobbytronics page. Using them is explained at my page using the commands for the Hobbytronics TFT display. The material there is slightly relevant to this page, but you may be able to skip it.

Images from the card in the microSD socket...

Once you have a memory card in the microSD socket, with a .bmp file called MyImage.bmp already saved on it (see below for more on that), you can, adapted as below, use the line in the demo that (nearly) says...


Note: You do NOT have to use an SD card at all. You an send text and graphics to the display over the serial connection already discussed. If you decide to "go" the "card" route....

-- The card must be formatted fat16 (despite limitations of the format)(ext4 doesn't seem to work for the display's wants.), and....

-- The card must have a bitmap of the right size on it, and....

-- The bitmap must have been saved with a 32bit color depth....

Meet those conditions, and you should be okay!

(I presume... but I haven't tried it... that you can have several bitmaps on the SD card, and change them as you wish with code, e.g.... (untested pseudo-code...))

if ((ButtonA Pressed)) then tft_command(13,120,85,"PressedA.bmp");if ((ButtonB Pressed)) then tft_command(13,120,85,"PressedB.bmp");if (((ButtonA Pressed=False) AND (ButtonB Pressed=False))) then tft_command(13,120,85,"PressedNone.bmp");

I don't, immediately, have an answer for you to "how do I convert my image to the right color depth." I had a look at my favorite image "Swiss Army Knife", Irfan Viewer (free! (Windows))... and didn't immediately find the necessary tool.... but I suspect it is there somewhere. Of course, many, many software tools should be able to manage this simple task. I hope already have one on your machine, if you do anything with images.

I'm told you can also write data to the card. Links to explanations of this would be welcome! (I suspect you just use "the usual" routines.)

   Search this site                 powered by FreeFind
Site Map    What's New    Search

Ad from page's editor: Yes.. I do enjoy compiling these things for you... hope they are helpful. However.. this doesn't pay my bills!!! If you find this stuff useful, (and you run an MS-DOS or Windows PC) please visit my freeware and shareware page, Sheepdog Software (tm), download something, and circulate it for me? At least (please) send an 'I liked the parallel port use page, and I'm from (country/ state)' email? (No... I don't do spam.) Links on your page to this page would also be appreciated!
Click here to visit editor's freeware, shareware page.

Here is how you can contact this page's editor.
Click here to go up to general page about electronics by editor of this page.
Click here to go up to general page about electronic projects by editor of this page.
Why does this page have a script that loads a tiny graphic? I have my web traffic monitored for me by eXTReMe tracker. They offer a free tracker. If you want to try it, check out eXTReMe's site. The Google panels and the search panel are also script based.

Valid HTML 4.01 Transitional Page tested for compliance with INDUSTRY (not MS-only) standards, using the free, publicly accessible validator at validator.w3.org

....... P a g e . . . E n d s .....