Accelerating momentary pushbutton
Posted: Tue Nov 01, 2011 1:21 am
Hello
I am working on a menu structure for a LCD display where a couple of different values are set and stored in EEPROM.
I am tryibf to use one momentary + buuton to increase a value and a - button to decresae the value.
The idea is that the + button will increase with 1 if just presssed but if it is pressed for a longer time the value will start to count up with an increasing speed. The value that needs to be set will be somwhere between 10 and 4000 so a constant slow increasing speed would be of no use.
Does anyone has an example of how to do this? Or any hints or ideas how it could be done?
I am working on a menu structure for a LCD display where a couple of different values are set and stored in EEPROM.
I am tryibf to use one momentary + buuton to increase a value and a - button to decresae the value.
The idea is that the + button will increase with 1 if just presssed but if it is pressed for a longer time the value will start to count up with an increasing speed. The value that needs to be set will be somwhere between 10 and 4000 so a constant slow increasing speed would be of no use.
Does anyone has an example of how to do this? Or any hints or ideas how it could be done?