adafruit / Adafruit_CircuitPython_FT5336

CircuitPython driver for the FT5336 touch screen controller
MIT License
0 stars 2 forks source link

X and Y coordinates #2

Open carbonBCrow opened 9 months ago

carbonBCrow commented 9 months ago

Hi, I've got the new featherwing capacitive display, Part# 5872, that uses this library. I'm setting up a background and shapes using displayio and other display libraries that give me my desired display orientation in landscape. The X coordinate is horizontal, the Y coordinate is vertical and the origin is in the upper left corner. But..........this touch display places the X coordinate vertical, the Y coordinate horizontal and the origin is in the lower left corner. This makes it a challenge to get a touch button to work properly. Can the library be altered to have the coordinate system match the adafruit_display_shapes and the adafruit_button coordinate systems?

makermelissa commented 7 months ago

To fix this, we should add some additional options to this lib like I did with https://github.com/adafruit/Adafruit_CircuitPython_TSC2007/pull/6