Pages: [1]   Go Down
Author Topic: UTFT - dispBitmap function  (Read 1206 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

jordan
Offline Offline
Jr. Member
**
Karma: 0
Posts: 56
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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);}
« Last Edit: June 24, 2013, 05:51:56 am by TTU.ABD » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
Logged

jordan
Offline Offline
Jr. Member
**
Karma: 0
Posts: 56
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

 


Logged

Pages: [1]   Go Up
Jump to: