Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Arduino MEGA & 2.8 TFT LCD Shield
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Arduino MEGA & 2.8 TFT LCD Shield

by MadsNi on Mon Jul 06, 2020 12:40 pm

Hi, I'm learning how to use the shield. It seems like its easy to use with an UNO-Board but not quite as easy to use with a MEGA board, as said in this guide: https://learn.adafruit.com/adafruit-2-8 ... connecting

I got the graphics to work on the MEGA by using the ICSP instead of pin 13, 12 and 11 (as the instructions showed on the shield - See Image 1)
Anmærkning 2020-07-06 182838.png
Image 1 - (shield backside)
Anmærkning 2020-07-06 182838.png (344.46 KiB) Viewed 32 times


I did the graphics "benchmark-test" and it worked fine. But i can't get the touch to work. I followed the instructions in this link: https://learn.adafruit.com/adafruit-2-8 ... paint-demo

But my code wound't compile, with the error message: 'STMPE_CS' was not declared in this scope
I tried the example, but i said the same, just in the Serial monitor - See image 2
Untitled.png
Image 2 - (Code Error)
Untitled.png (94.04 KiB) Viewed 31 times


What is causing this issue? Hope you can help - thanks in advance

MadsNi
 
Posts: 1
Joined: Mon Jul 06, 2020 12:23 pm

Re: Arduino MEGA & 2.8 TFT LCD Shield

by indy on Wed Jul 08, 2020 3:05 pm

In the link you included they refer to the touch shield only requiring one additional pin, #8. In the code, try replacing 'STMPE_CS' with 8 and see if it works.

Hope that helps.

indy
 
Posts: 16
Joined: Tue Dec 04, 2012 1:30 am

Please be positive and constructive with your questions and comments.