Show Posts
Pages: 1 ... 17 18 [19] 20 21 ... 253
271  Using Arduino / Programming Questions / Re: TFT TouchScreen V1.0 seeedstudio !!!HELP ME!!! on: August 07, 2014, 03:46:51 pm
The TouchScreenMenu library is old, therefore the contents and other supporting libraries are not going to work. This library is including the TFT library which was changed to use the adafruit ST7735 library. I had to change that on my end, but it most likely will not work for your screen.

What you need to do is contact the original writer of the TouchScreenMenu library and see if there is a newer updated version. I've done what I could but you seem to be having more and more issues every time something is changed.
272  Using Arduino / Programming Questions / Re: TFT TouchScreen V1.0 seeedstudio !!!HELP ME!!! on: August 07, 2014, 02:38:46 pm
 smiley-roll
Attached is the .cpp file, swap it with the one you have now.
273  Using Arduino / Programming Questions / Re: TFT TouchScreen V1.0 seeedstudio !!!HELP ME!!! on: August 07, 2014, 02:32:31 pm
Quote
you need to find getTSPoint and change them to getPoint.
All getTSPoint need to be changed.
274  Using Arduino / Programming Questions / Re: TFT TouchScreen V1.0 seeedstudio !!!HELP ME!!! on: August 07, 2014, 02:16:06 pm
You did exactly what I was hoping you wouldn't do, which was pressing CTRL-F and replacing Point with TSPoint.  smiley-lol

Its ok, but now you need to find getTSPoint and change them to getPoint.
275  Using Arduino / Programming Questions / Re: TFT TouchScreen V1.0 seeedstudio !!!HELP ME!!! on: August 07, 2014, 01:23:16 pm
Did you remember to save it after you made the changes? Once I made the changes it compiled fine.

Attach your .cpp file, i'll take a look at it.
276  Using Arduino / Programming Questions / Re: TFT TouchScreen V1.0 seeedstudio !!!HELP ME!!! on: August 07, 2014, 12:20:23 pm
process is just the function name I want you to find in the .cpp file, in order to change Point to TSPoint.

Thats all. Once you do that, see if it compiles.
277  Using Arduino / Programming Questions / Re: TFT TouchScreen V1.0 seeedstudio !!!HELP ME!!! on: August 07, 2014, 11:51:08 am
Here is an example: There are four in total you need to change, this is just one of them.

Quote
TouchScreenMenuItem *TouchScreenMenu::process(bool waitForItem){
    TouchScreenMenuItem *item = 0;
    do{
        Point p = _controller->getTouchScreen()->getPoint();
   
        if (p.z > _controller->getTouchScreen()->pressureThreshhold) {
            p.x = map(p.x, TS_MINX, TS_MAXX, _controller->getScreenWidth(), 0);
            p.y = map(p.y, TS_MINY, TS_MAXY, _controller->getScreenHeight(), 0);
            item = checkForHit(p.x , p.y);
        }
    }while(item==NULL && waitForItem);
   
    return item;
}

Anything that looks like "Point", you must change to "TSPoint"
278  Using Arduino / Programming Questions / Re: TFT TouchScreen V1.0 seeedstudio !!!HELP ME!!! on: August 07, 2014, 11:15:26 am
Same issue as before with the same fix. Go into the TouchScreenMenu.cpp file and find the functions named ::process and change Point to TSPoint.

Save it and recompile your code.
279  Using Arduino / Programming Questions / Re: TFT TouchScreen V1.0 seeedstudio !!!HELP ME!!! on: August 07, 2014, 10:57:21 am
What is the exact error message your getting?
280  Using Arduino / Displays / Re: Controling 20x4 LCD with Serial interface module on: August 07, 2014, 10:34:03 am
Get rid of whatever library you downloaded for your display and just download the library I gave in reply# 5.
281  Using Arduino / Programming Questions / Re: TFT TouchScreen V1.0 seeedstudio !!!HELP ME!!! on: August 07, 2014, 10:31:31 am
Its TSPoint, not just Point.
282  Using Arduino / Displays / Re: Controling 20x4 LCD with Serial interface module on: August 06, 2014, 07:45:33 am
There is a core folder and a sketch folder. The core folder is where you put the library, that is the wrong place to put it. It needs to go into the sketch folder under "libraries" in your MyDocuments.
283  Using Arduino / Displays / Re: Controling 20x4 LCD with Serial interface module on: August 06, 2014, 07:39:48 am
You put the library in the wrong place, it needs to go under:

C:\Users\*Name*\Documents\Arduino\Libraries
284  Using Arduino / Project Guidance / Re: Robot? on: August 05, 2014, 09:07:53 pm
How about a RC car/truck/thing... that can parallel park itself. All you need to do is get it parallel to another object and park between said object and another one.
285  Using Arduino / Displays / Re: Need to make it stop on: August 05, 2014, 03:06:51 pm
You keep filling the screen with the color blue.
Quote
void loop()
{
    tft.fillScreen(BLUE);
    
    tft.drawRoundRect(10, 20, 100, 50, 5, WHITE);
    tft.fillRoundRect(10, 20, 35, 50, 5, WHITE);
 .
 .
 .
}

Put that line in the setup() function.
Actually anything that doesn't need to be constantly redrawn on the screen should be put in the setup() function too.
Pages: 1 ... 17 18 [19] 20 21 ... 253