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

MINPRESSURE 0 not working #5

Open Bob4u opened 10 years ago

Bob4u commented 10 years ago

Just correcting the last "if" with the correct :

if (p.z >= MINPRESSURE && p.z < MAXPRESSURE) {

It works also for non-pressure readings, BUT when we touch the panel the library returns the right pressure values mixed to pressure "0" readings even if the touch pad is continuously pressed.

Jeroi commented 9 years ago

You need to define atleast 10-100 to min pressure to get it working.