For fixing the docs - Looks like maybe there are two different examples with two different wirings.
The guide wiring here:
https://learn.adafruit.com/adafruit-2-8 ... -906193-10
matches the library example linked from the same guide, which is from the TouchScreen library:
https://github.com/adafruit/Adafruit_To ... endemo.ino
Code: Select all
#define YP A2 // must be an analog pin, use "An" notation!
#define XM A3 // must be an analog pin, use "An" notation!
#define YM 8 // can be a digital pin
#define XP 9 // can be a digital pin
https://github.com/adafruit/Adafruit_IL ... hpaint.ino
Code: Select all
#define YP A2 // must be an analog pin, use "An" notation!
#define XM A3 // must be an analog pin, use "An" notation!
#define YM 9 // can be any digital pin
#define XP 8 // can be any digital pin