[Coco] Assembly code scans keyboard but doesn't repeat
Mark McDougall
msmcdoug at iinet.net.au
Mon Mar 6 19:10:04 EST 2017
On 7/03/2017 10:42 AM, Dave Philipsen wrote:
> But then you should really de-bounce it too....
True, though it depends on your scan rate.
You can debounce an entire column together if you're scanning often
enough rather than worry about individual bits, since the user can't
really press them quickly enough to make a difference. Just use a
counter to check that the byte hasn't changed for a few iterations, then
once you hit your threshold, make that your 'current' byte. Then use the
'current' byte for your edge-detect.
Regards,
--
Mark McDougall
<http://retroports.blogspot.com.au>
More information about the Coco
mailing list