How to setup Arduino sketch and library

I’m in need of some help.

I just received a Arduino Mega and a Seeeduno 2.8" TFT Touchscreen and would like to mess with it, but I am having some issues.

  1. how do I properly setup the sketch and library? I’ve got the sketch for the touchscreen in:
    …\arduino-0022\examples\TFTTouchScreen\TFTTouchScreen.pde

and placed the libraries in:

…\arduino-0022\libraries\TFT\ [2 TFT Files here]
…\arduino-0022\libraries\TouchScreen\ [2 Touchscreen files here]
…\arduino-0022\libraries\stdint\stdint.h

When I try to compile OR upload I get the following errors:

I grabbed the libraries from HERE

the code is almost 20000 characters long and the forum won’t allow more than 10,000 characters so I placed it in a text file you can GET HERE (on Google Docs)

I’m at my wits end on this, been trying to get it to compile/upload for two days now.

Hopefully I’ve included all that you need to know.

any help would be greatly appreciated :slight_smile:

Thanks
BiPed

No mind all that mess up there… Got rid of all the errors, mostly…

I still haven’t been able to get the thing to work properly, new errors listed below:

Stupid me forgot to send the code to my usb drive. I'll post the errors tomorrow. Sorry :( But it's still an good update though. The question for the sketch folder setup is still valid though, I think I had a fluke happen on this :rolleyes:

here is the error I forgot yesterday…

In file included from d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:80,
                 from font.c:8:
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/inttypes.h:77: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int_farptr_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/inttypes.h:81: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'uint_farptr_t'
In file included from font.c:8:
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:215: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prog_int8_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:216: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prog_uint8_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:217: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prog_int16_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:218: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prog_uint16_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:219: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prog_int32_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:220: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prog_uint32_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:222: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prog_int64_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:223: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'prog_uint64_t'

any ideas of what is going on here?

I use Arduino 0022 software
Using Arduino Mega 2560 & UNO

Thank you for the reply back,

The software and Arduino was turned off for the night last night…

here is the error I forgot yesterday…

When I try to compile I get the following errors:

In file included from d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:80,
                 from font.c:8:
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/inttypes.h:77:  error: expected '=', ',', ';', 'asm' or '__attribute__' before  'int_farptr_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/inttypes.h:81:  error: expected '=', ',', ';', 'asm' or '__attribute__' before  'uint_farptr_t'
In file included from font.c:8:
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:215:  error: expected '=', ',', ';', 'asm' or '__attribute__' before  'prog_int8_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:216:  error: expected '=', ',', ';', 'asm' or '__attribute__' before  'prog_uint8_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:217:  error: expected '=', ',', ';', 'asm' or '__attribute__' before  'prog_int16_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:218:  error: expected '=', ',', ';', 'asm' or '__attribute__' before  'prog_uint16_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:219:  error: expected '=', ',', ';', 'asm' or '__attribute__' before  'prog_int32_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:220:  error: expected '=', ',', ';', 'asm' or '__attribute__' before  'prog_uint32_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:222:  error: expected '=', ',', ';', 'asm' or '__attribute__' before  'prog_int64_t'
d:/desktop/arduino-0022/arduino-0022/hardware/tools/avr/lib/gcc/../../avr/include/avr/pgmspace.h:223:  error: expected '=', ',', ';', 'asm' or '__attribute__' before  'prog_uint64_t'

Hello BipedAndroid and welcome to the RobotShop Forum.

Your code setup looks OK. Make sure you restart Arduino after adding new libraries so they can be compiled and used by the software. Also, what are the errors you are still getting? Maybe we can help you out if we know the specific error message.

This issue seems to be very specific to the code and the Seeedstudio shield. We recommend contacting their technical support directly as they might have some insight in why this is not working: [email protected]