Hello, can someone please take a look at this code and see if you can figure it out? The code was written to work with the old adafruit parallel 2.8 inch touchscreen. What I am trying to do is get it to work with the new version 2 of the Touch shield that is SPI.(2.8 TFT Touch Shield for Arduino with Resistive Touch Screen : ID 1651 : $34.95 : Adafruit Industries, Unique & fun DIY electronics and kits) I have the display part working but cannot get the touch to work. I'm sure it has to be something simple that I am just missing if anyone can tell me what I am doing wrong I would much appreciate it thank you in advance.
Attached is the code in a text file. I will attach the original code and the one with my modification.
Okay making some progress. Got the touch to start working but it does not lineup with what is on the screen. It looks like when you touch the bottom right corner it activates what's in the upper left corner. Does anybody happen to have a quick fix for this? Thank you
m new to arduino using arduino mega
m working with resistive touchscreen project, the problem is that touchscreen library is not working.
what i want is that i should be able to divide the touchscreen area in rectangle and by pressing the rectangle i should be able to make LED high or low