I've successfully gotten a capacitive touchscreen (FT6206) working by doing 3 things...
replacing every instance of STMPE610 with FT6206
modifying both the calibration constants and getRotation Switch Cases to suit the FT6206
changing fifo = touch->bufferSize() to fifo = touch->touched()
Next, I attempted to modify the code (intelligently) to submit a PR but I'm running into problems. I added an additional constructor overload for the FT6206 which requires the inclusion Adafruit_FT6206.h. This causes a redefinition error for the duplicate Class TS_Point that is common to both Adafruit_STMPE610.h and Adafruit_FT6206.h.
Full disclaimer, I've written no more than 15K lines of C++ in my lifetime. I only written a few classes / libraries, and just started learning about subclassing, abstract classes, virtual functions and function overriding very recently so I'm still a bit of a greenhorn.
I'm not sure how to get past this without modifying the underlying included libraries to put TS_Point in a class of it's own that is included by each touchscreen library.
I've successfully gotten a capacitive touchscreen (FT6206) working by doing 3 things...
Next, I attempted to modify the code (intelligently) to submit a PR but I'm running into problems. I added an additional constructor overload for the FT6206 which requires the inclusion Adafruit_FT6206.h. This causes a redefinition error for the duplicate Class TS_Point that is common to both Adafruit_STMPE610.h and Adafruit_FT6206.h.
Full disclaimer, I've written no more than 15K lines of C++ in my lifetime. I only written a few classes / libraries, and just started learning about subclassing, abstract classes, virtual functions and function overriding very recently so I'm still a bit of a greenhorn.
I'm not sure how to get past this without modifying the underlying included libraries to put TS_Point in a class of it's own that is included by each touchscreen library.