I am trying to display a BMP image on a lcd screen using arduino. I have tried using this code: Arduino - TFTLoadImage but i am getting this error "'EsploraTFT' was not declared in this scope"
I am using an arduino uno with a 3.5" TFT LCD shield by Microyum
That example code is written for use only with the Esplora Arduino board. For the Arduino Uno, you will need to create a TFT object, as documented here: https://www.arduino.cc/en/Reference/TFTConstructor
So if you had code like this:
Then you would change the code to use the code to use the screen object you created, instead of the EsploraTFT object:
screen.begin();
It's quite unfortunate that Arduino chose to write their example code this way. They already have a reference page for EsploraTFT so they should have made the rest of the examples as generally useful as possible. I don't have time right now to submit a request for this to be changed, but I put it on my "to do" list. If anyone else wants to do it, feel free.