caiannello / ER-TFTM0784-1

Arduino library for the 1280x400 TFT LCD + Touchscreen from BuyDisplay.com
MIT License
14 stars 7 forks source link

Touch Panel Interrupt #1

Open blackketter opened 4 years ago

blackketter commented 4 years ago

First off, thanks for sharing this work! I'm trying to bring it up with a teensy 4.1.

I'm a little confused by the use of the touch panel interrupt output pin in your code. The README shows that it's connected to pin 30, but the code has pin 30 connected to something called PEN_911, which appears to be set up as an output pin on Arduino.

I don't see any support for the touch interrupt pin otherwise in the code, nor any reference to enable in the module or GT911 datasheets, so I guess this is just a simple misinterpretation of that pin and it's not needed for the demo. Does this seem right?

caiannello commented 3 years ago

Sorry for the amazingly late reply. I just started looking at it again, and I agree. I really just did the bare minimum to port the factory demo by Javen Liu. (For 8051 microcontroller.)

I can't remember if I ever tested the touch functionality. Also, graphics worked well on Arduino Due, but I've been having trouble getting it to work on Teensy 4.0. It kinda works if I do weird stuff like disconnecting the LCD's ground(!?). I don't think it's my soldering.. I think some timing is marginal somewhere.

If you managed to get it working, I'd love a note on what was broken. Thanks.

blackketter commented 3 years ago

Ha, no worries! I ended up using a different driver for the touch screen, with some changes. It worked on a Teensy 4.1, but it's been months since I've used it.

My version is here: https://github.com/blackketter/GT911