Pages: [1]   Go Down
Author Topic: I need a shrunk down version of the UTFT library for UNO  (Read 330 times)
0 Members and 1 Guest are viewing this topic.
India
Offline Offline
Newbie
*
Karma: 0
Posts: 33
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys, I have a UNO and want to interface it with a TFT display. Everything is fine except for the limited space available for storing the sketch. Has someone here faced the same situation and trimmed the UTFT library. If yes, then please share it with me as I don't have much time to finish my project and this would really help me to get things done a lot quicker.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

1) make a backup copy of the UTFT library.
2) edit the .h file and remove all the methods you do not use.  (comment them  with // is more flexible smiley-wink
3) edit the .cpp file and comment all the corresponding code //
4) restart the IDE, load your sketch and compile again.

If you still are in memory trouble, you can minimize other modules. (are you sure the TFT lib is the big memory eater?)

You can also post your sketch so we can help you refactor it.



Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

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

@robtillaart Followed your advice and now the sketch size has almost reduced to half. Thanks a lot.  smiley
Logged

Pages: [1]   Go Up
Jump to: