TFT TouchScreen V1.0 seeedstudio !!!HELP ME!!!

:roll_eyes:
Attached is the .cpp file, swap it with the one you have now.

TouchScreenMenu.cpp (38.8 KB)

Didn't do anything still same error:

/Users/will_sterz1/Documents/Arduino/libraries/TouchScreenMenu/TouchScreenMenu.cpp: In member function 'virtual bool TouchScreenArea::process(bool)':
/Users/will_sterz1/Documents/Arduino/libraries/TouchScreenMenu/TouchScreenMenu.cpp:320: error: 'TSPoint' was not declared in this scope
/Users/will_sterz1/Documents/Arduino/libraries/TouchScreenMenu/TouchScreenMenu.cpp:320: error: expected ;' before 'p' /Users/will_sterz1/Documents/Arduino/libraries/TouchScreenMenu/TouchScreenMenu.cpp:322: error: 'p' was not declared in this scope /Users/will_sterz1/Documents/Arduino/libraries/TouchScreenMenu/TouchScreenMenu.cpp: In member function 'virtual bool TouchScreenSlider::process()': /Users/will_sterz1/Documents/Arduino/libraries/TouchScreenMenu/TouchScreenMenu.cpp:533: error: 'TSPoint' was not declared in this scope /Users/will_sterz1/Documents/Arduino/libraries/TouchScreenMenu/TouchScreenMenu.cpp:533: error: expected ;' before 'p'
/Users/will_sterz1/Documents/Arduino/libraries/TouchScreenMenu/TouchScreenMenu.cpp:535: error: 'p' was not declared in this scope
/Users/will_sterz1/Documents/Arduino/libraries/TouchScreenMenu/TouchScreenMenu.cpp: In member function 'TouchScreenMenuItem* TouchScreenMenu::process(bool)':
/Users/will_sterz1/Documents/Arduino/libraries/TouchScreenMenu/TouchScreenMenu.cpp:920: error: 'TSPoint' was not declared in this scope
/Users/will_sterz1/Documents/Arduino/libraries/TouchScreenMenu/TouchScreenMenu.cpp:920: error: expected `;' before 'p'
/Users/will_sterz1/Documents/Arduino/libraries/TouchScreenMenu/TouchScreenMenu.cpp:922: error: 'p' was not declared in this scope

Instead of doing this can you just help me make a form GUI? Like a bootup screen, a main menu, settings, etc?

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.

I found this one that you might be able to use.

Menu.zip (11.1 KB)

Okay, It seems to work because when I press on the touchscreen, I get serial message menumenuChanged menuItem1 selected
But how do I use this example? All I have on my screen is white. Some help with the code would be nice. I want a rectangle that when you press, It takes the user to a different screen. And a back button on that screen. Any help is appreciated.

I need to see what you have.

HazardsMind:
I need to see what you have.

Do I need to attach a file? I haven't done anything to it.

SerialMenu.pde (2.91 KB)

Oh, the file you attached is made to output to the serial monitor, what have you done to make it work on your TFT screen?

I would suggest you make your screens into functions that you call from the menu system and in each functions have a GUI with the buttons you want. What libraries are you using for your TFT screen?

....I don't know about this project.... Im almost ready to give up on this old little TFT, after all they stoped producing this product :frowning:
I have been trying to make a GUI button with paint, I works, but It can only do one function on one screen. I have install a TON of libraries to try to make this work, i'm getting sick of having to reboot the device, and then It crashes my computer, and I have to restart it all over again. Honestly, if no one will not make anymore libraries for this TFT touchscreen, why even try? No one is gona care! All I want, Is to use the libraries that I downloaded from youtube, on ONE video. I want to be an inventor when I grow up, Im only 12! I will attach the file, and the error code, and the folder. Hazards Mind, you are a great guy, you have gone so far to help me, and I love all your support. I am very happy with you. Here is the error code:

TouchScreenMenuTest:35: error: variable or field 'checkMenuSelection' declared void
TouchScreenMenuTest:35: error: 'TouchScreenMenuItem' was not declared in this scope
TouchScreenMenuTest:35: error: 'item' was not declared in this scope
TouchScreenMenuTest:31: error: 'TouchScreenMenuItem' does not name a type
TouchScreenMenuTest:42: error: 'TouchScreenMenuItem' does not name a type
TouchScreenMenuTest:53: error: 'TouchScreenMenuItem' does not name a type
TouchScreenMenuTest:64: error: 'TouchScreenMenuItem' does not name a type
TouchScreenMenuTest:72: error: 'TouchScreenMenuItem' does not name a type
TouchScreenMenuTest:80: error: 'TouchScreenMenuItem' does not name a type
TouchScreenMenuTest:95: error: 'TouchScreenMenuItem' does not name a type
TouchScreenMenuTest:104: error: 'TouchScreenMenu' does not name a type
TouchScreenMenuTest:105: error: 'TouchScreenMenu' does not name a type
TouchScreenMenuTest:106: error: 'TouchScreenMenu' does not name a type
TouchScreenMenuTest:107: error: 'TouchScreenMenu' does not name a type
TouchScreenMenuTest:108: error: 'TouchScreenMenu' does not name a type
TouchScreenMenuTest:109: error: 'TouchScreenMenu' does not name a type
TouchScreenMenuTest:110: error: 'TouchScreenMenu' does not name a type
TouchScreenMenuTest:113: error: expected constructor, destructor, or type conversion before '*' token
TouchScreenMenuTest:115: error: 'TouchScreenArea' does not name a type
TouchScreenMenuTest:116: error: 'TouchScreenArea' does not name a type
TouchScreenMenuTest:117: error: 'TouchScreenArea' does not name a type
TouchScreenMenuTest:119: error: 'TouchScreenArrowButton' does not name a type
TouchScreenMenuTest:120: error: 'TouchScreenArrowButton' does not name a type
TouchScreenMenuTest:121: error: 'TouchScreenArrowButton' does not name a type
TouchScreenMenuTest:122: error: 'TouchScreenArrowButton' does not name a type
TouchScreenMenuTest:123: error: 'TouchScreenCircleButton' does not name a type
TouchScreenMenuTest:124: error: 'TouchScreenCircleButton' does not name a type
TouchScreenMenuTest:125: error: 'TouchScreenSlider' does not name a type
TouchScreenMenuTest:126: error: 'TouchScreenSlider' does not name a type
TouchScreenMenuTest:128: error: 'TouchScreenArea' does not name a type
TouchScreenMenuTest:129: error: 'TouchScreenArea' does not name a type
TouchScreenMenuTest:130: error: 'TouchScreenArea' does not name a type
TouchScreenMenuTest:131: error: 'TouchScreenArea' does not name a type
TouchScreenMenuTest:132: error: 'TouchScreenArea' does not name a type
TouchScreenMenuTest:133: error: 'TouchScreenArea' does not name a type
TouchScreenMenuTest.ino: In function 'void setup()':
TouchScreenMenuTest:136: error: 'TSC' was not declared in this scope
TouchScreenMenuTest:138: error: 'btn7' was not declared in this scope
TouchScreenMenuTest:140: error: 'btn8' was not declared in this scope
TouchScreenMenuTest:142: error: 'curMenu' was not declared in this scope
TouchScreenMenuTest.ino: In function 'void loop()':
TouchScreenMenuTest:147: error: 'curMenu' was not declared in this scope
TouchScreenMenuTest:149: error: 'TouchScreenMenuItem' was not declared in this scope
TouchScreenMenuTest:149: error: 'item' was not declared in this scope
TouchScreenMenuTest:151: error: 'checkMenuSelection' was not declared in this scope
TouchScreenMenuTest.ino: In function 'void checkButtons()':
TouchScreenMenuTest:161: error: 'backFromGfx' was not declared in this scope
TouchScreenMenuTest:162: error: 'curMenu' was not declared in this scope
TouchScreenMenuTest:162: error: 'mainMenu' was not declared in this scope
TouchScreenMenuTest:163: error: 'TSC' was not declared in this scope
TouchScreenMenuTest:166: error: 'backFromBtns' was not declared in this scope
TouchScreenMenuTest:167: error: 'curMenu' was not declared in this scope
TouchScreenMenuTest:167: error: 'mainMenu' was not declared in this scope
TouchScreenMenuTest:168: error: 'TSC' was not declared in this scope
TouchScreenMenuTest:171: error: 'backFromLbls' was not declared in this scope
TouchScreenMenuTest:172: error: 'curMenu' was not declared in this scope
TouchScreenMenuTest:172: error: 'mainMenu' was not declared in this scope
TouchScreenMenuTest:173: error: 'TSC' was not declared in this scope
TouchScreenMenuTest:176: error: 'btn1' was not declared in this scope
TouchScreenMenuTest:179: error: 'btn2' was not declared in this scope
TouchScreenMenuTest:182: error: 'btn3' was not declared in this scope
TouchScreenMenuTest:185: error: 'btn4' was not declared in this scope
TouchScreenMenuTest:188: error: 'btn5' was not declared in this scope
TouchScreenMenuTest:191: error: 'btn6' was not declared in this scope
TouchScreenMenuTest:194: error: 'btn7' was not declared in this scope
TouchScreenMenuTest:197: error: 'btn8' was not declared in this scope
TouchScreenMenuTest.ino: At global scope:
TouchScreenMenuTest:203: error: variable or field 'checkMenuSelection' declared void
TouchScreenMenuTest:203: error: 'TouchScreenMenuItem' was not declared in this scope
TouchScreenMenuTest:203: error: 'item' was not declared in this scope

This error is under the TouchScreenMenuTest under folder TouchScreenMenu. Thank you so much. This is all I want for this to work.

TouchScreenMenu_v1.2.zip (39.2 KB)

I'll take a look when I get home, but I still need to know what lcd your using. A link to were you got it would be helpful.

Here are the fixed (working) libraries. You must take all 3 out of the TFT_Old_libs folder and put them into the regular "libraries" folder, to work.

I changed 3 example sketches,
drawCircle_new
touchscreendemo
TouchScreenMenuTest

Look how they are written and follow them as examples.

TFT_Old_Libs.zip (45 KB)

What regular "libraries" folder?

You should have a folder called "libraries" located in your arduino sketch folder.

New error message in touchscreenmenu > examples > TouchScreenMenuTest

/Users/will_sterz1/Documents/Arduino/libraries/touchscreenmenu/TouchScreenMenu.cpp: In constructor 'TouchScreenController::TouchScreenController()':
/Users/will_sterz1/Documents/Arduino/libraries/touchscreenmenu/TouchScreenMenu.cpp:31: error: no matching function for call to 'TouchScreen::TouchScreen(int, const uint8_t&, const uint8_t&, int, int)'
/Users/will_sterz1/Documents/Arduino/libraries/TouchScreenNew/TouchScreen.h:24: note: candidates are: TouchScreen::TouchScreen()
/Users/will_sterz1/Documents/Arduino/libraries/TouchScreenNew/TouchScreen.h:22: note:                 TouchScreen::TouchScreen(const TouchScreen&)

Oh, I put in the wrong file in, sorry. XD

Try this one. Same sketches and unpacking procedure.

TFT_Old_Libs.zip (44.2 KB)

IT WORKED! :DDDDDD THANK YOU SO MUCH!

One more question, how can I change the "Main Menu" Title to something else? I don't know where it is in the script.

You mean this line here?

#include <TouchScreenMenu.h>
#include <TouchScreen.h>
#include <TFT_old.h>
#include <cstddef.h>

// create the array of items for the first sub menu
TouchScreenMenuItem subMenuItems[] = {
TouchScreenMenuItem("<- Main Menu"),
TouchScreenMenuItem("Left Justify"),
TouchScreenMenuItem("Right Justify"),
TouchScreenMenuItem("Small Font"),
TouchScreenMenuItem("Spacing"),
TouchScreenMenuItem("Padding"),
TouchScreenMenuItem("ENDOFMENU")
};

No, when I boot up the device, I see a screen that has buttons, and a big title that says "Main Menu".