Go Down

Topic: UTFT - dispBitmap function (Read 1 time) previous topic - next topic

AJoao

Hi everybody,
I need of "void dispBitmap(File inFile);" file in UTFT library, because I want to show a BMP file from SD card to LCD screen, but I dont know where it is. And I dont know make this!
Somebody can help me?
Thanks in advance!

AJoao

TTU.ABD

#1
Jun 17, 2013, 04:19 pm Last Edit: Jun 24, 2013, 12:51 pm by TTU.ABD Reason: 1
if you use sd-card on tft-lcd,you will need to 4 libraries:
1-tinyFAT
2-UTFT
3-UTFT_tinyFAT
4-UTouch

you can download them from
http://henningkarlsen.com/electronics/library.php

the code will change to
#include <tinyFAT.h>
#include <UTFT.h>
#include <UTFT_tinyFAT.h>
#include <UTouch.h>

UTFTtf    myGLCD(ITDB32S,38,39,40,41);
UTouch  myTouch(6,5,4,3,2);

void setup(){
myGLCD.InitLCD(PORTRAIT);
myTouch.InitTouch(PORTRAIT);
file.initFAT();
myTouch.setPrecision(PREC_HI);}

AJoao

Hi TTU.AB,
I already see these librares, but I dont find the "dispBitmap" function or similar.
The UTFT.h have de prototype this function, but the UTFT.c dont have.
Thank you for your time!

TTU.ABD

in the first step , you must convert the picture to extension [.raw] by this software
https://www.dropbox.com/s/6ywftn27pchyshv/ImageConverter565.exe
but you must record the vertical and horizontal pixels of picture.
then use the function
myGLCD.loadBitmap(220, 62.9, 11, 12, "H.raw");
220,62.9: the coordinates left up corner of picture
11:horizontal of pixel of picture
12: vertical of pixel of picture

 



Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy