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

BASCOM-AVR : Need debounce help : REPLY

$
0
0
I have revised my code to: do If Pinb.4 = 0 Then waitms 2 incr sbounce If sbounce > = 28 Then ' 'do stuff because with has been held at least 56ms End If If pinb.4 =1 then ' button has been released before count is up sbounce = 0 'reset sbounce ' do different stuff while switch is open end if loop

Viewing all articles
Browse latest Browse all 20688

Trending Articles



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