Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide
translations



Rockbox mail archive

Subject: Re: unreliable buttons? try this

Re: unreliable buttons? try this

From: Glenn Ervin at Home <GlennErvin_at_cableone.net>
Date: Sat, 3 Jul 2004 23:46:49 -0500

Could this problem possibly be solved by adjusting the scrolling speed?
Glenn
----- Original Message -----
From: "John Donahue" <john.donahue_at_excite.com>
To: <rockbox_at_cool.haxx.se>
Sent: Saturday, July 03, 2004 9:43 PM
Subject: Re: unreliable buttons? try this



Thanks for trying to solve this problem.
I'm convinced that its only during the release of the button that the
problem occurs. Looking at the flashing numbers in the debug section, when a
button is released it doesnt always go from say 200 down to 000 cleanly.
Sometimes a 100 will briefly show. I've always noticed the mechanism for
button release feels a lot more 'gradual' than the 'click' when its pressed.
I tried your fix and I indeed wasnt able to trigger a false positive
buttonwise. F2 was a little sluggish for me but works. Two rapid pushes of
any button didnt register the 2nd push however, so I wouldnt suggest this
build for tetris ;)

Maybe instead just check that the reading goes back down to zero before
allowing a lesser but non-zeroish value. like allow all the 26F's during a
button hold but ignore that 1D2 upon release since it didnt go down to zero
first. But, allow number changes that go higher as would result from button
combinations. um, also the release of one of the buttons after a combo press
should be recognized as ok i guess...
JohnD




Several people reported unreliable button detection by Rockbox, sometimes
there are misinterpretations. You can stop reading if you don't suffer from
this.


I have added a kind of "debouncing" to the button code. Now, a button is
only valid if the analog port reported several stable readings within a
certain "corridor". Please test it and report if this is an improvement. The
corridor may be too strict, causing dead buttons. So try the .ajz via rolo
first, flash later, or you need the F1-start. ;-)



_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox

_______________________________________________
http://cool.haxx.se/mailman/listinfo/rockbox
Received on 2004-07-04

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy