Upload
diego-xavier
View
215
Download
0
Embed Size (px)
Citation preview
8/17/2019 UTFT_tinyFAT
1/3
ht t p: / / www. Ri nkyDi nkEl ect r oni cs. com/ ( C) 2014 Ri nky- Di nk El ect r oni cs, Henni ng Kar l sen
UTFT_tinyFAT Add-on Library for UTFT: tinyFAT
Manual
8/17/2019 UTFT_tinyFAT
2/3
Li brar y Manual : UTFT_t i nyFAT Page 1
Introduction: Thi s l i brar y i s an add- on t o UTFT and wi l l not wor k on i t s own. Thi s add- on l i brary al so r equi r es t he t i nyFAT l i brar y.
Thi s l i brar y adds a si mpl e way t o l oad i mages f r om SD car ds. The i mages must be i n t he . r awf ormat . I mages can be convert ed t o t he . r aw f ormat wi t h the I mageConver t er565 suppl i ed wi t ht he UTFT l i br ary or t he onl i ne versi on f ound on my websi t e.
You can al ways f i nd t he l at est ver si on of t he l i brar y at http://www.RinkyDinkElectronics.com/
For ver si on i nf ormat i on, pl ease refer t o version.txt.
Thi s l i brar y i s l i censed under a CC BY-NC-SA 3.0 ( Cr eat i ve Commons At t r i but i on-NonCommerci al - ShareAl i ke 3. 0 Unpor t ed) Li cense.
For more i nformati on see: http://creativecommons.org/licenses/by-nc-sa/3.0/
8/17/2019 UTFT_tinyFAT
3/3
Li brar y Manual : UTFT_t i nyFAT Page 2
FUNCTIONS:
UTFT_tinyFAT(UTFT);
The main class constructor.
Parameters: UTFT : A r ef erence t o an al r eady cr eated UTFT obj ect
Usage: UTFT_t i nyFAT myFi l es(&myGLCD) ; / / Star t an i nstance of t he UTFT_t i nyFAT cl ass
Notes: Remember t he ‘ &’ i n f r ont of t he UTFT obj ect name
loadBitmap (x, y, sx, sy, filename);
Load a bitmap from a SD card and display it on the screen.
Parameters: x: x-coor di nate of t he upper , l eft corner of t he bi t mapy: y-coor di nate of t he upper , l eft cor ner of t he bi t mapsx: wi dt h of t he bi t map i n pi xel ssy: hei ght of t he bi t map i n pi xel sf i l ename: name of t he f i l e to l oad fr omt he SD card ( char arr ay or Str i ng obj ect )
Usage: myFi l es. l oadBi t map( 50, 50, 32, 32, “I CON. RAW”) ; / / Load I CON. RAW f r omt he SD card and di spl ay i t
Notes: You can use t he onl i ne- t ool “ImageConverter 565” or “ImageConverter565.exe” i n t he Tools- f ol der t oconver t pi ct ures i nto compat i bl e ar r ays. The onl i ne- t ool can be f ound on my websi t e.