adafruit / Adafruit_LvGL_Glue

“Glue” library between LittlevGL and Adafruit GFX (SPITFT)
Other
35 stars 14 forks source link

Capacitive touchscreen support #14

Open keystoneclimber opened 3 years ago

keystoneclimber commented 3 years ago

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.