Go Down

Topic: 2.8" TFT Color LCD,touch screen shield V1.2 - getting strange errors (Read 1 time) previous topic - next topic


I bought this shield and I have the arduino mega 2560
The shield : http://www.nuelectronics.com/estore/index.php?main_page=product_info&cPath=1&products_id=31

It works fine with the first example; the calibration.

But when I want to do the menu example, it gives me all strange errors

I have tried different things.
First of all I have put all the header and .cpp files under libraries in their own folder,

So no I have these included:
#include <pff.h>
#include <integer.h>
#include <diskio.h>
#include <TFT_Arduino_Mega.h>
#include <TFT_ILI9325.h>
#include <f12x12.h>
#include <TFT_Font.h>
#include <TFT_Graphics.h>
#include <Touchpanel.h>
#include <util/delay.h>
#include <stdlib.h>
#include <f15x22.h>

Only the util/delay file is not there in the libraries folder, but the rest is there.

and then I also get this error:
C:\Users\Melkon\AppData\Local\Temp\build3019902955486871018.tmp/tft_menu.cpp:364: undefined reference to `tp_calibrate()'

So I add a new tabe called: tp_calibrate
and paste the code of the previous example in it and then I get some errors about some definitions are redefined...

So I comment most of the code that gives me error in the tp_calibrate tab.

Now I compile the first tabe: tft_menu

Now I get this error:

tft_menu.cpp.o: In function `bitmap()':
C:\Users\Melkon\AppData\Local\Temp\build3019902955486871018.tmp/tft_menu.cpp:327: undefined reference to `mount_sd()'

C:\Users\Melkon\AppData\Local\Temp\build3019902955486871018.tmp/tft_menu.cpp:334: undefined reference to `open_root_dir()'

C:\Users\Melkon\AppData\Local\Temp\build3019902955486871018.tmp/tft_menu.cpp:336: undefined reference to `show_bitmap()'

I really hope someone could help me out!

Go Up