Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20809

BASCOM-AVR : constrain a variable? : REPLY

$
0
0
One other way to implement a fast/slow inc/dec is to use a timer to set the delay, then run the timeout shorter the longer the button is held down. Reset the timer to the long delay as soon as the button is released. Saves you the complexity of inc/dec by large numbers, but adds complexity in the timing system.

Viewing all articles
Browse latest Browse all 20809

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>