Hello all. I am working with A mega 2560 and seeed Studio 2.8 inch touch shield. The screen works with some samples. But I cannot get this code to compile. I am very new to Arduino and learning as I go. Here is a link to the project I'm trying to get working http://sobisource.com/?p=375 here is the code with the libraries SobiSource.com is for sale | HugeDomains. Every time I go to compile I get this.
JOS_BETA_v2103.ino: In function 'void loop()':
JOS_BETA_v2103:256: error: 'Point' was not declared in this scope
JOS_BETA_v2103:256: error: expected `;' before 'p'
JOS_BETA_v2103:264: error: 'p' was not declared in this scope
Is there anyway to fix this and get it to work? Thank you in advance for any help.
I will attach a text file with the full code it is too big to paste it in this post.
This is the line the first error pops up in.
Point p = ts.getPoint();
This might help some. The code is older than at the above link this just might help
explain the project a little better.
It compiled without error for me. That suggests that you may have one or more of the library files in the wrong place. Make sure the libraries are in the libraries directory as:
Like I said, I'm as dumb as a box of rocks on the Mac, but see what happens if you copy those libraries to the Users/justin-nj9a/Documents/Arduino/libraries directory.
Hello my fellow HAM. Yes that is where the libraries are. I just tried it in virtual box with Windows 7 got it to compile but when uploading presented A whole bunch of new errors that might have something to do with running it in a virtual machine. I might try moving all my libraries out of that directory and just putting in the ones that the programs needs.
NJ9A
It looks to be the same as in windows. In Windows 7 it was also put it in my documents Android libraries directory. I'm back on the Mac Side now thought I was making progress I cleared out my library folder just put back in the
Adafruit_GFX
Adafruit_TFTLCD
Touch_Screen
The code compiled and uploaded but I just have a white screen.