tft 3.5 error with MCUFRIEND_kbv library example

Hello

I tried to compile example from this library for 480x320 display
Example name: GLUE_DEMO_480x320

Error says:

GLUE_Demo_480x320:21:19: error: 'A2' was not declared in this scope

UTFTGLUE myGLCD(0,A2,A1,A3,A4,A0); //all dummy args

^

GLUE_Demo_480x320:21:22: error: 'A1' was not declared in this scope

UTFTGLUE myGLCD(0,A2,A1,A3,A4,A0); //all dummy args

^

exit status 1
'A2' was not declared in this scope

Can someone tell me what is the problem?
Thanks!

zglibeti:
'A2' was not declared in this scope

Can someone tell me what is the problem?

Yes. You are not using an Arduino.

Regular Arduinos have "known" Analog pins called A0, A1, ...

In fact A2 is only a dummy. You could equally well write:

UTFTGLUE myGLCD(0,0,0,0,0,0); //all dummy args

There are other examples where A1, A2 are actually important e.g. Touch pins on Mcufriend shields.

David.

Okay David,

Thank you very much

Should I write pins which are used on esp32?

Shields mate with headers on TTGO / Wemos R32 boards. (you still need a small hardware mod)

If you want to hand-wire to a different ESP32 board you will have to follow the same Wemos scheme.

It looks as if the Calibration sketch even specifies the ESP32 pins.
If you have a problem, please provide information.

I do not expect to support random hand-wiring. But I will certainly help with R32 boards.

David.