From 52b0605fb41ae72b95246a92431221637e1e377a Mon Sep 17 00:00:00 2001 From: Karl Kurbjun Date: Sun, 6 Feb 2011 19:26:31 +0000 Subject: TSC2100: Sample multiple times and provide an average to clean up touch detection. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29218 a1c6a512-1295-4272-9138-f99709370657 --- firmware/drivers/tsc2100.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/drivers/tsc2100.c b/firmware/drivers/tsc2100.c index b8edb7d52d..433e1ce6a5 100644 --- a/firmware/drivers/tsc2100.c +++ b/firmware/drivers/tsc2100.c @@ -81,8 +81,10 @@ void tsc2100_set_mode(bool poweron, unsigned char scan_mode) { short tsadc=(scan_mode<