adafruit / Adafruit_TouchScreen

Arduino library for 4-wire resistive touchscreens
http://www.adafruit.com/index.php?main_page=product_info&cPath=35&products_id=333
Other
272 stars 212 forks source link

Tft Button blinking when stay pressed #18

Closed Stephan35 closed 4 years ago

Stephan35 commented 4 years ago

Hello,

I solved a problem with my tft and adafruit gfx library.

When i stay pressed on button , it blinking.

here is lines i had to change to get it work without blinking. if (samples[0] - samples[1] < -4 || samples[0] - samples[1] > 4) { to if (samples[0] - samples[1] < -75 || samples[0] - samples[1] > 75) {

Hope give some help.

ladyada commented 4 years ago

ok!