9 years, 10 months ago.  This question has been closed. Reason: Unclear question

readTouch Function Arguments, please explain.

I have just received my Seed Studios TFT touch shield and I am using it on a ST Nucleo F401RE. I am trying to recreate the painting example that Seed Studios puts out for the Arduino platform and I am confused on what the arguments for the readTouch function are in the SeeedStudioTFTv2 library.

The function definition is:

int SeeedStudioTFTv2::readTouch(PinName p, PinName m, PinName a, PinName i) { DigitalOut _p(p); _p = 1; DigitalOut _m(m); _m = 0; AnalogIn _a(a); AnalogIn _i(i); this pin has to be high Z (DigitalIn may also work) wait_us(10); return _a.read_u16(); }

What pins on the Seed Studio Shield would these arguments correspond to?

Thanks

Question relating to: